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 are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What are the types pl/sql code blocks?
List out the acid properties and explain?
How does index help in query performance?
What is coalesce in sql?
What do you mean by field in sql?
What are the different ddl commands in sql?
What are the features of pl sql?
How to rename a column in the output of sql query?
What are the advantages of stored procedure?
Can we use the cursor's to create the collection in PL/SQL?
What program will open a mdb file?
What mean sql?
How does a self join work?
What are the types of join and explain each?