how to find the second highest salary from emp table?
Answer Posted / raghu munukutla
SQL> select max(sal) from emp where rownum<=(select
count(sal)-1 from emp)
order by sal desc;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why are cursors used?
what are the join types in tsql? : Transact sql
Is inner join same as self join?
What is row_number () in sql?
What are the two characteristics of a primary key?
Can we edit a view in sql?
What are the different parts of a package?
is it possible to pass an object or table to a procedure as an argument?
Can you do multiple joins in sql?
What is trigger explain with example?
What is the use of sql trace?
What are inbuilt functions in sql?
How do I truncate a word?
What is the use of pl/sql table?
How can we avoid duplicating records in a query?