how to find the second highest salary from emp table?

Answer Posted / mallika

SELECT salary FROM employee a
WHERE &n IN (SELECT COUNT(*) FROM employee b
WHERE a.salary <= b.salary)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I enable sql encryption?

522


Why do we use sqlite?

537


What does closing a cursor do?

770


Explain isolation levels. : Transact sql

579


What is a sql*loader control file?

622






What is the order of sql select?

578


What is the difference between inner join and natural join?

513


What is scalar function in sql?

536


what is isam? : Sql dba

581


What are the advantages of sql?

562


how to increment dates by 1 in mysql? : Sql dba

543


What is difference between table and view?

531


What are different clauses used in sql?

592


Which is better join or subquery?

610


What is primary key secondary key alternate key candidate key?

548