Anybody can tell me, how do we find second largest emp
salary from emp table.. Thanks in advance ...
Answer Posted / selvaraj anna university coe
Oracle 10g Using : Find 2nd Highest Salary?
SELECT * FROM emp e WHERE 2=(SELECT COUNT(DISTINCT salary)
FROM emp x
WHERE x.salary >= e.salary);
Answer :
EMP_NO EMP_NAME SALARY
--------- ------------------------- ---------
107 SARABOOT 550000
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
How to login to the server without an instance?
How to run create database statement?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
How many types of cluster table in Oracle?
What suggestions do you have to reduce the network traffic?
What is recycle bin in Oracle?
What happens to the current transaction if the session is killed?
How to write a query with a left outer join in oracle?
How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?
Explain the use of rows option in imp command.
From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.
Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun
Please explain compound trigger in oracle?
What is a server parameter file in oracle?
What is SQL access advisor in Oracle?