find the third highest salary?

Answer Posted / imran ansari

find n th highest salary replace n with 1,2,3....to find second,third,fourth........sal
SELECT sal from emp order by sal desc limit 2,1

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run sql?

826


Is join an inner join?

718


What is sql*loader and what is it used for?

742


Can a foreign key be null?

809


Why primary key is required?

719






How can you tell the difference between an index and a view?

690


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

758


What is the purpose of cursors in pl/sql?

798


Why cross join is used?

825


Which tcp/ip port does sql server run?

715


What is the location of pre_defined_functions.

839


Is sqlite free?

718


Why sql query is slow?

729


What is trigger explain with example?

751


How to sort the rows in sql.

812