Write a query to find second highest salary of an employee.
Answer Posted / satheesh
SELECT MAX(SAL) FROM EMP A
WHERE SAL NOT IN(SELECT MAX(SAL) FROM EMP B);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of functions in sql?
Can we rollback after truncate?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
what is top in tsql? : Transact sql
how to shut down the server with 'mysqladmin'? : Sql dba
What does count (*) do in sql?
What are analytical functions in sql?
What is auto increment in sql?
How to disable a trigger name update_salary?
Can a table contain multiple foreign key’s?
Can you have a foreign key without a primary key?
Can we use threading in pl/sql?
how to fetch common records from two tables? : Sql dba
Is sql sequential or random?
Is sql injection illegal?