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
What is oracle rowcount?
Explain a segment?
Explain the use of indexes option in imp command.
definition of cluster and non-clustered index?
what is insert all statement in sql
What are the most common interview questions on ETL Testing for experience?
How to write a left outer join with the where clause in oracle?
How to pass a parameter to a cursor in oracle?
Which is better Oracle or MS SQL? Why?
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?
Can we protect our pl/sql source code?
How to delete a user account in oracle?
How do I uninstall oracle 11g?
Can group functions be used in the order by clause in oracle?
is there a tool to trace queries, like profiler for sql server?