How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / ravi kumar

SELECT MIN(sal) FROM Emp WHERE sal in
(SELECT TOP 2 DISTINCT sal from Emp ORDER BY DESC)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are rest-style architecture's?

149


What is dimension table? : sql server analysis services, ssas

562


What is difference between join and natural join?

481


SQL Server Architecture ?

1936


Explain the rules for designing files and file groups in sql server?

552






What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

3760


Why do we use functions?

516


define and explain the differences between clustered and non-clustered indexes.

601


Explain atomicity?

579


How efficient you are in oracle and SQL server?

644


What are translations and its use? : sql server analysis services, ssas

609


What is delete query?

524


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1694


Detail about query optimizer?

616


Define clusters?

652