Write a query to find second highest salary of an employee.

Answer Posted / cooldude

select max(sal) from Emp where sal < (select max(sal) from
Emp)

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define sql insert statement ? : Sql dba

544


What is sql injection vulnerability?

490


Can a procedure in a package be overloaded?

538


Is primary key clustered or nonclustered?

553


What are all the ddl commands?

616






how to install mysql? : Sql dba

575


What is form and report?

510


Can you have more than one trigger on a table?

522


how to convert character strings to numeric values? : Sql dba

564


What is sql and explain its components?

589


What are the different sql commands?

505


Do we need to rebuild index after truncate?

520


What is sql data?

539


What are pl/sql cursor exceptions?

563


What is the difference between cross join and natural join?

554