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

select salary from emp
where salary = (select max(salary) from emp
where salary <>(select max(salary) from emp)

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to update the views? If yes, how, if not, why?

541


What is the difference between functions and scalar functions?

571


What is bcp? When does it used?

545


how you can configure a running aggregate in SSRS?

112


Explain a join?

611






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

584


Explain primary key?

539


Can two different columns be merged into single column? Show practically?

606


How we can refresh the view?

592


Explain four layers of abstraction microsoft architectured?

120


How can change procedure in sql server?

517


What are character string data types in ms sql server?

628


what are the critical issues you have resloved in your company

1550


How to convert a unicode strings to non-unicode strings?

557


What happens if null values are involved in bitwise operations?

603