how to find nth highest salary
Answer Posted / dewashish kumar pal
select salary from tablename t where (n-1)= (select count(*) from tablename where salary > t.salary);
note:- t = tablename
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what stored procedure can you use to display the current processes? : Sql server administration
What are the benefits of normalization?
Explain different types of lock modes in sql server 2000?
Do you know exporting and importing utility?
What is BLOCK statements in SQL?
Is null vs coalesce?
How do you set a trace flag in sql server?
Tell me what is the significance of null value and why should we avoid permitting null values?
Explain the steps to use transact-sql cursor?
Explain about link server in sql server?
What is a raid and what are different types of raid configurations?
Mention the 3 ways to get a count of the number of records in a table.
What to check if a User database is locked?
Is port 1433 secure?
Tell me about joins in database system and explain each in detail.