how to find nth highest salary
Answer Posted / sanwar hudda
n th Highest salary
select salary from test t1 where n-1=(select COUNT (*) from
test
where salary > t1.salary )
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are a scheduled jobs or what is a scheduled tasks?
Can the query output be sorted by multiple columns in ms sql server?
What is attribute hierarchy? : sql server analysis services, ssas
Explain the concepts and capabilities of sql server?
What is table valued function and scalar valued functions?
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
How to attach adventureworkslt physical files to the server?
What are the High-Availability solutions in SQL Server and differentiate them briefly?
Tell me what is a linked server?
What is a filestream?
what is normalization? : Sql server database administration
What is a trigger and its types?
What is row-level compre?
How can a database be repaired?
Write a query to find 5th highest amount paid from the customer table.