how to check the 3rd max salary from an employee table?

Answer Posted / amit

select max(sal) from emp where sal<(select max(sal) from emp where sal<(select max(sal) from emp));

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pls_integer in pl sql?

541


Explain two easy sql optimizations.

604


Which is better join or subquery?

608


What are the qualities of 2nf?

546


What is write ahead logging in sql server?

564






What are joins in sql?

541


How to test for null values?

607


define join and explain different type of joins? : Sql dba

546


how to concatenate two character strings? : Sql dba

556


What are the different operators available in sql?

577


How is a PL/SQL code compiled?

670


what is 'mysqlcheck'? : Sql dba

575


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

635


What is difference between pls_integer and integer?

521


What is an invalid partition table?

566