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

select salary-1 from users where salary in (select
max(salary) from users);

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ms sql server triggers?

709


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

735


What is a join in sql? What are the types of joins?

700


How many full-text indexes can a table have?

730


What is query optimization process?

721


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

78


What is openrowset sql server?

756


What's new in sql management studio for sql server? : sql server management studio

778


Why use stored procedures in sql server?

718


what are different types of backups available in sql server? : Sql server database administration

680


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

761


What is the purpose of the tempdb database?

756


How to check table values in sql server?

702


Which are the important points to note when multilanguage data is stored in a table?

690


How to round a numeric value to a specific precision?

778