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
Why do we use function in pl sql?
What is sql used for?
Is it possible to create the following trigger: before or after update trigger for each row?
What are the types of queries in sql?
What is java sql driver?
What is row_number () in sql?
what is the difference between delete and truncate statement in sql? : Sql dba
What is asqueryable?
What does pragma mean?
Is sql a backend language?
What is the difference between delete, truncate and drop command?
How do you clear the screen in sql?
What does bitemporal mean?
What is the use of procedures?
Can we call a function containing dml statements in a select query?