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
What are % type and % rowtype?
Are sql database names case sensitive?
what is row? : Sql dba
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
Explain what is sql?
What is schema in sql?
What is the requirement of self-join?
What are the types of functions in sql?
Is json a nosql?
how do you login to mysql using unix shell? : Sql dba
What is exit statement?
What are the types of operators available in sql?
What is dense_rank in sql?
How to select 10 records from a table?
How do I make sql search faster?