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 / subhranghshu bhattacharjee

first find second largest salary in the emp database:

select min(sal)sal from(select sal from emp order by sal
desc)
where rownum<3
u can find 3rd,4th... so on ,only change rownum
like rownum<4,rownum<5 ... so on

Is This Answer Correct ?    10 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about sql server login?

585


What are different types of views?

544


What is difference between delete and truncate commands?

521


Explain the stored procedure?

625


How to concatenate two character strings together?

563






what are the new features introduced in sql server 2000? : Sql server database administration

539


How check triggers in sql server?

511


How to download and install microsoft sql server management studio express?

556


Explain what is scheduled job and how to create it?

540


What are the different types of backups avaialabe in sql server 2005?

614


Explain what is it unwise to create wide clustered index keys?

535


Explain the purpose of indexes?

532


Is it possible to have clustered index on separate drive from original table location?

508


Will the writetext statement activate a trigger?

560


Define indexes?

596