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
Describe different types of general function used in sql?
what is commit? : Sql dba
Can we create a trigger on view?
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
what is foreign key? : Sql dba
how to dump a table to a file with 'mysqldump'? : Sql dba
What is the benefit of foreign key?
How many clustered indexes can you have?
How do you optimize a stored procedure in sql?
What does bitemporal mean?
Is join and inner join the same?
Explain the difference between sql and mysql.
What is the execution plan in sql?
What is not in sql?
How to prepare for oracle pl sql certification?