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 / gunjan sapra

select top 10 from tbl_name order by salary desc

Is This Answer Correct ?    4 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of filtered indexes?

532


what are defaults? Is there a column to which a default can't be bound? : Sql server database administration

631


What is a fill factor?

641


How do you debug a procedure in sql server?

504


Define left outer join?

604






What are clustered and non-clustered index?

563


What is forward - only cursors / read only cursor?

529


What is reportserver and reportservertempdb ?

107


What do you understand by physical_only option in dbcc checkdb?

591


What happens if you insert a duplicate key for the primary key column in ms sql server?

543


Where are sql server usernames and passwords stored in the sql server?

624


How do I start sql server?

539


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

512


how many type of indexing in database?

593


What are the differences between substr and charindex in sql server.

515