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

A little correction:

sol2> select salary from emp order by salary desc limit 1,1;

select salary from emp order by salary desc limit n-1,1;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What stored procedure can you use to display the current processes?

496


How can I add Reporting Services reports to my application?

91


What is normalization of database?

601


How to use clusters?

553


What are key, name and value columns of an attribute? : sql server analysis services, ssas

574






What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

491


What is the purpose of data source?

513


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

568


what exactly sql injuction.how to overcome.....

2043


How to handle error or exception in sql?

532


How to use subqueries in the from clause in ms sql server?

571


How extra digits are handled with numeric data type literals?

522


How to define the name and server for a new dsn?

549


What are window functions in sql server?

513


How to enter binary string literals in ms sql server?

584