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
How to display the current date in sql?
Explain two easy sql optimizations.
How to test for null values?
define sql insert statement ? : Sql dba
What is aggregate function in sql?
How to load data with sql*loader?
Is mariadb a nosql database?
how can you create an empty table from an existing table? : Sql dba
Write a query to display the current date in sql?
What is join view in sql?
What is an implicit commit?
What are the indexing methods?
How do you get column names only for a table (sql server)?
Can you have a foreign key without a primary key?
What is the difference between numeric and autonumber?