find the third highest salary?

Answer Posted / nripesh agarwal

select * from emp where salary=(select salary from emp
order by salary desc N,1);


// Put the value for N as for Nth highest salary
// e.g. for 2nd put N=2 , for 3rd put N=3 and so on...

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is oracel sql developer written in java?

658


What does rownum mean in sql?

566


What is composite data type in pl sql?

568


What are the types of views in sql?

548


How do I remove duplicates in two columns?

516






What is mdf ldf and ndf?

569


Explain the types of joins in sql?

581


Explain ttitle and btitle.

680


What are the types of operators available in sql?

564


What is a natural join sql?

519


What are analytic functions in sql?

559


Can we have two clustered index on a table?

574


What does sign mean sql?

584


explain commit and rollback in mysql : sql dba

555


describe transaction-safe table types in mysql : sql dba

516