how to find the second highest salary from emp table?

Answer Posted / hitesh pundir

select max(salary)from m1 where salary <>(select max(salary)
from m1)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of triggers?

566


How to pronounce postgresql?

586


When are we going to use truncate and delete?

555


explain the advantages and disadvantages of stored procedure? : Sql dba

536


What is varchar example?

578






Does sql full backup truncate logs?

535


When should I use nosql database?

553


What is the use of function in sql?

543


what is 'mysqlshow'? : Sql dba

593


Does sql between include endpoints?

560


What is pls integer?

589


What is program debugging?

573


How can you select unique records from a table?

524


What are inner and outer joins examples of both?

501


What is null in pl/sql?

628