how to find the second highest salary from emp table?

Answer Posted / vijay shegokar

select * from employee where salary=(select max(salary) from
employee where salary not in (select max(salary) from
employee));

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between pl/sql and sql?

619


What are the different types of a subquery?

523


Is nosql faster than sql?

544


What is record data type?

518


what is denormalization. : Sql dba

546






What is partition in sql query?

519


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

513


What is an invalid partition table?

566


What is tuple in sql?

547


what is 'mysqld'? : Sql dba

546


How to pronounce postgresql?

584


What is sql character function?

546


what is try_catch block in procedure

1194


What are sql data types?

550


What are the different datatypes available in PL/SQL?

568