find out the second highest salary?
Answer Posted / subash
select sal from emp e
where 2=(select count(distinct sal) from emp b where
b.sal>e.sal)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is set operator oracle?
What is a trigger and what are its types?
How to delete a column in an existing table?
How to define a cusotmer as a supplier in ORACLE R12
What is a lookup table in oracle?
what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?
How to define a procedure inside another procedure?
What would you do with an in-doubt distributed transaction?
What is a cursor and what are the steps need to be taken?
How to rebuild an index in oracle?
What happens if recursive calls get out of control?
What is oracle rowcount?
What is a dynamic performance view in oracle?
What are the advantages of oracle 12c?
How to loop through data rows in the implicit cursor?