find out the second highest salary?
Answer Posted / asit kumar sahu
SELECT DISTINCT SAL FROM EMP E1
WHERE 2=(SELECT COUNT(DISTINCT SAL) FROM EMP E2
WHERE E1.SAL <= E2.SAL);
OUTPUT= 3000
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
What is the best way to do multi-row insert in oracle?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?
How to run create database statement?
What is an oracle user account?
How to do a full database export?
What is the database name in oracle?
What is oracle open database communication (odbc)?
How to retrieve values from data fields in record variables?
How to get execution statistics reports on query statements?
Can we convert a date to char in oracle and if so, what would be the syntax?
20. Using a set operator, display the client number of all clients who have never placed an order.
How to select some rows from a table in oracle?
Is postgres faster than oracle?
How to do paging with oracle?