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
How to insert new line characters into strings?
Explain syntax for dropping triggers?
What is the process of normalising?
How to get the query of a table in sql server?
What is use of attribute hierarchy optimized state? : sql server analysis services, ssas
Is candidate a key?
How many types of subqueries are there in sql server?
What is the order by used for?
What is exporting utility?
Why the trigger fires multiple times in single login?
Where actually sql azure database is hosted?
How can change procedure in sql server?
How to rename databases in ms sql server?
What are the pre-defined functions in the sql server?
How to insert multiple rows with one insert statement in ms sql server?