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

Can we insert in view in sql?

559


What does rownum mean in sql?

551


What is pivot query?

591


What is meaning of <> in sql?

583


what is column? : Sql dba

568






What do you mean by field in sql?

531


What happens when a trigger is associated to a view?

498


What are actual parameters and formal parameters?

565


What is normalization? How many normalization forms are there?

552


What are the constraints available in sql?

575


What are functions in sql?

506


how to convert character strings to dates? : Sql dba

522


Explain lock escalation? : Transact sql

702


How do I truncate a word?

521


Can we use insert statement in function?

514