Answer Posted / vamsi krishna
For 2nd maximum salary
select Max(sal) from EMP a where 2=(select COUNT(distinct(sal)) from EMP b where a.SAL<=b.SAL);
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
what is the system function to get current user's user id? : Sql server database administration
What is the Main Difference between ACCESS and SQL SERVER?
Explain partitioned view?
What is query optimization process?
What is RAID? What are the different types of RAID configurations?
Find columns used in stored procedure?
Which sql server is best?
How to download and install the scaled-down database adventureworkslt?
Can you pass expressions to function parameters?
What keyword you will use to get schema appended to the result set of a ‘for xml’ query?
What is the significance of null value and why should we avoid permitting null values?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
What is the purpose of self join?
Disadvantages of the indexes?
why would you call update statistics? : Sql server database administration