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 / neon

select salary from emp
where salary = (select max(salary) from emp
where salary <>(select max(salary) from emp)

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the stuff and how does it differ from the replace function?

732


What is openxml in sql server?

878


Explain the Ways to improve the performance of a sql azure database?

78


Define constraints and give an example of their use?

740


Explain in details security in SQL azure?

115






what is nonclustered index

696


What is an expression in ms sql server?

723


Can a table be moved to different filegroup?

727


Write a sql query to delete duplicate records from a table called table1

777


What are the operating modes in which database mirroring runs?

816


What is difference between rownum and row_number?

695


What is identity?

761


What are distinctive joins find as a part of sql?

702


how to determine the service pack currently installed on sql server? : Sql server database administration

737


Explain in brief how sql server enhances scalability of the database system?

686