find out the second highest salary?
Answer Posted / sujeet sinha
SELECT DISTINCT (a.sal) FROM EMP A WHERE 2 = (SELECT COUNT
(DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can the query output be sorted by multiple columns in oracle?
What is redo log?
Can we commit inside a function in oracle?
What is truncate oracle?
List the parts of a database trigger.
How can you merge two tables in oracle?
How to loop through data rows in the implicit cursor?
Can we use oracle pl/sql block in core java? if so how? pls get back to me .....
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
What is sequence?
What is oracle open database communication (odbc)?
What is a cursor and what are the steps need to be taken?
What is analyze command used for?
How do you find current date and time in oracle?
How to do paging with oracle?