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

select gross_pay from tbl_payroll where gross_pay != (select
max(gross_pay) from tbl_payroll) limit 0,3

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 difference between createstatement and preparedstatement?

541


What are the tool windows in sql server management studio? : sql server management studio

617


What is the fastest way to permanently delete a 1 million row table named customers?

597


What happens if time-only values are provided as date and time literals?

528


What is repeatable read?

540






What are “lost updates”?

611


Explain boyce and codd normal form(bcnf)?

532


How to create a large table with random data for index testing in ms sql server?

533


What are the results of running this script?

509


Explain about thread and memory management process of SQL?

532


Can we call stored procedure in view in sql server?

492


What are the purposes and advantages stored procedure?

495


What is scheduled job and how to create it?

546


What are parameterized reports?

160


How do I install sql server?

460