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 do u setup a replication site?
What are the numeric comparison operations?
What privilege is needed for a user to query tables in another schema?
Is oracle an operator?
How to create an initialization parameter file?
What is data type in oracle?
How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?
How oracle handles dead locks?
how can we store any pdf file in oracle
What do you mean by cdb and pdb in oracle 12c?
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 integrity constraint?
Is there any function in oracle similar like group_concat of mysql?
What is meant by recursive hints in oracle?
How to write a query with a right outer join in oracle?