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


Please Help Members By Posting Answers For Below Questions

How to insert data into an existing table?

569


What is inner join? Explain with an example?

688


What is the sql profiler?

542


What is the contrast amongst drop and truncate?

558


Explain what is dbcc?

593






What are the types of ssrs?

108


What is index, cluster index and nonclustered index?

512


What is sql server locking?

553


List out the differences between the clustered index and non-clustered index in sql server?

503


How to transfer an existing table from one schema to another schema in ms sql server?

510


What are the authentication modes in sql server? How can it be changed?

600


What is an indexing technique?

494


How many tables can be joined in SQL Server?

592


What do you understand by integration services in sql server?

549


Tell me what is fill factor?

555