how to find nth highest salary
Answer Posted / ravikiran
select * from employee.e1 where (n-1) =
( select (distinct b.salary ) from employee.e2 where e1.salary > e2.salary
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to use order by with union operators in ms sql server?
When is the use of update_statistics command?
Do you know what are different types of replication in sql server?
What are .mdf files?
How do you start single user mode in clustered installations?
What is policy based management (pbm)? : sql server database administration
you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
How to drop an existing stored procedure in ms sql server?
Where are SQL server users names and passwords are stored in sql server?
To automatically record the time on which the data was modified in a table, which data type should you choose for the column?
Explain Geometry datatype in sql server 2008 with example
Data table as parameter in sql server?
Mention the differences between substr and charindex in sql server.
What is nonclustered index with included columns ?