how to find nth highest salary
Answer Posted / deepak dabi
I Think this is the best solution ever i have seen ,i
appriciate if you prove me wroong on this so,otherwise i got
all other a bit wrong ,in many cases please try this....
"SELECT distinct(sal) from emp order by sal desc limit 2,1"
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the built in functions in sql server?
How to execute multiple stored procedures at one time in sql server?
what happens on checkpoint? : Sql server database administration
What is master database? : SQL Server Architecture
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?
What are the various editions of sql server 2017 that are available in the market?
What is the function of inner join?
Explain isolation levels that sql server supports?
Explain indexed views?
What are the purposes and advantages stored procedure?
How to download and install microsoft .net framework version 2.0?
Explain different types of lock modes in sql server 2000?
What is the difference between getdate and sysdatetime?
Can you explain the disadvantages/limitation of the cursor?
How much space does sql server 2016 take?