how to find nth highest salary
Answer Posted / kavitha.r
Sorry. This one is correct
select top 1 salary from employee where salary in (select
distinct
top n salary from employee order by salary desc) order by
salary asc
Is This Answer Correct ? | 44 Yes | 18 No |
Post New Answer View All Answers
How to provide values to user defined function parameters?
How to create a scrollable cursor with the scroll option?
What is merge statement?
if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration
What are the advantages dts has over bcp?
What happens if ntwdblib.dll is missing on your machine?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
Do you know what are the steps to process a single select statement?
what is nonclustered index
What is the use of set nocount on/off statement?
What is the difference between for xml raw and for xml auto?
What is the use of keyword with encryption. Create a store procedure with encryption?
What is table join?
Does index speed up select statements?
Explain tables in SQL Azure?