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
What are the types of trigger in oracle?
How to connect asp pages to oracle servers?
interview questions with answer for cts
How to create a table in a specific tablespace?
What is bulk collect in oracle?
How do I manually uninstall oracle client?
What is recovery manager in Oracle?
How to view the data files in the current database?
How to write text literals in oracle?
What is the minimum client footprint required to connect c# to an oracle database?
Explain what are the different type of segments?
How to view the tablespaces in the current database?
Does facebook use oracle?
What is a view and how is it different from a table?
Can you have more than one content canvas view attached with a window ?