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
How to use regular expression in pattern match conditions in oracle?
What is logical backup in oracle?
How many categories of data types in oracle?
What is the scope of a local variable?
Give the advantages and disadvantages of clusters.
what is difference between sql plus and sql*plus? (not sql and sql plus).
What is the usage of synonyms?
how to handle exceptions in post production
I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.
What is recovery manager(rman) backup in Oracle?
What are the extensions used by oracle reports?
How to create a new tablespace in oracle?
How to connect the oracle server as sysdba?
Can we write dml statement in function in oracle?
Why does oracle 9i treat an empty string as null?