how to find nth highest salary
Answer Posted / debasish
select salary from table t where n-1=(select distinct count
(sal) from table t1 where t1.sal>t.sal)
Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
How to create function without parameter in sql server?
what is the difference between count(*) and count(1) ?
What are the source of constraints?
What is resource governor?
How to list all triggers in the database with sys.triggers in ms sql server?
Differentiate between delete and truncate.
How can you list all the table constraints in a database?
What are the functions in sql server?
Find nth lowest salary or get nth lowest salary?
Differentiate between a having clause and a where clause.
Write an sql query for deleting duplicate rows?
Do you know the isolation level that sql server support?
How to delete duplicate rows?
What are the different types of triggers in SQL SERVER?
Explain ranking functions?