how to find nth highest salary
Answer Posted / kiran k s
select distinct(salary) from table t1
where 4=(select count(distinct(salary))from table t2
where t2.salary >= t1.salary);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a table have 2 foreign keys?
What is the bookmark lookup and rid lookup?
How retrieve field names from the table in SQL through JAVA code?
What is the default fill factor value?
Why do we backup Active Directory ?
Can we linked SharePoint to a SQL database?
When I delete any data from a table, does the sql server reduce the size of that table?
How to generate create procedure script on an existing stored procedure?
How do I start sql server 2017?
Why Master database is required?
What is plan freezing?
can a table be moved to different filegroup? : Sql server administration
What are pessimistic lock and optimistic lock?
What is trigger and different types of Triggers?
What action plan is preferred if sql server is not responding?