how to find nth highest salary
Answer Posted / debasish
select salary from table t where n-1=(select distinct count
(sal) from table t1 where t1.sal>t.sal)
| Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
How secure is sql server database?
Tell me what are cursors and when they are useful?
What are the restrictions while creating batches in sql server?
What is a primary key?
Do you know what are pages and extents? : SQL Server Architecture
What do you mean by recursive stored procedure?
Define inner join in sql server joins?
How to delete existing rows in a table?
Write down the syntax and an example for create, rename and delete index?
Can sub report data source be different from that of the parent report?
What is an indice?
What is the simplest way to create a new database in ms sql server?
How to create a user name in a database?
Explain the stored procedure?
Explain filtered indexes benefits?