how to find the second highest salary from emp table?
Answer Posted / neeraj
SELECT DISTINCT(SAL) FROM EMP
WHERE SAL=(SELECT MIN(SAL) FROM (SELECT SAL FROM EMP ORDER
BY SAL DESC)
WHERE ROWNUM<=2);
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to rename a column in the output of sql query?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
How would you convert date into julian date format?
what is online transaction processing (oltp)? : Sql dba
What is varchar data type in sql?
What are hotfixes and patches?
What is the purpose of normalization?
How we can update the view?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
what is error ora-03113: end-of-file on communication channel?
what is 'trigger' in sql? : Sql dba
what is view? : Sql dba
What is optimistic concurrency control? : Transact sql
Explain exception handling in pl/sql?
Explain cursor types?