how to get second highest salary in SQL(as/4000
Answer Posted / apurva
Select *
From (
Select *
From (select * from emp order by sal desc)
Where rownum < 3 order by sal) ---> n+1 for example for
secound you should use 3
Where rownum < 2
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
what is 'mysqlimport'? : Sql dba
How to convert comma separated string to array in pl/sql?
Explain ddl statements in pl/sql?
What is difference between pl and sql?
How to select unique records from a table?
Does truncate free space?
define sql delete statement ? : Sql dba
How can we implement rollback or commit statement in a trigger?
what is a unique key ? : Sql dba
What is pls_integer in pl sql?
Is sql low level language?
What is a sql profiler?
What are the most important ddl statements in sql?
How many parts of a pl sql block are optional?
What is normalization in sql?