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
What is the difference between rollback and rollback to statements?
what is offset-fetch filter in tsql? : Transact sql
Is it possible to include an insert statement on the same table to which the trigger is assigned?
how to drop an existing index in mysql? : Sql dba
Why use stored procedures?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
Can %notfound return null after a fetch?
Explain the the delete statements in sql?
How show all rows in sql?
Explain what is a field in a database and record in a database?
what are integrity rules?
what are the advantages of sql ? : Sql dba
What is linq to sql?
How do I save the results of sql query in a file?
How you improve the performance of sql*loader? : aql loader