Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / venkat

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

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql select statement?

511


What is sql profiling in oracle?

553


What is t sql used for?

559


what is the use of set statement in tsql? : Transact sql

546


what is oracle database ? : Sql dba

569






Which software is used for pl sql programming?

531


What is not equal in sql?

519


what are the 'mysql' command line options? : Sql dba

565


Can there be 2 primary keys in a table?

565


What is pl sql commands?

568


What does the sign mean in sql?

519


Show the two pl/sql cursor exceptions.

622


What is dialect in sql?

533


Can we join 3 tables in sql?

506


how to select first 5 records from a table? : Sql dba

520