how to find nth highest salary
Answer Posted / ravindra babu
select sal from (select sal from(Select distinct sal from
EMP order by sal desc)Where rownum <=2 order by sal asc)
Where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get a list of columns in a view using the "sp_columns" stored procedure?
How to create indexed view?
Why truncate is ddl?
What is TDS(Tabular Data Stream) Gateway?
You want to implement the one-to-many relationship while designing tables. How would you do it?
What is xml datatype?
How to get a list all databases on the sql server?
What are different types of statements that are supported by sql?
What is use of @@ spid in sql server?
Explain having clause and where clause?
Explain what is it unwise to create wide clustered index keys?
Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication
What is transaction server isolation?
What is nonclustered index with included columns ?
Why functions are used in sql server?