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

select max(salary) from (select salary from table1 where
salary<(select max(salary) from table1))

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use the inserted and deleted pseudo tables?

540


What is the bookmark lookup and rid lookup?

566


What is a file group?

614


What is the difference between Normalization and De-normalization?

558


What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

571






What is the difference between dataadapter and datareader?

537


How to sort query output in descending order in ms sql server?

542


How do I find the sql server instance name?

527


How to create an multi-statement table-valued function?

526


How do I completely remove sql server instance?

564


Explain tables in SQL Azure?

95


What is your recommendation for a query running very slow? : sql server database administration

589


What is service broker?

581


Is sql server is free?

537


Is it important for a database administrator to understand the operating system and file access?

506