how to find nth highest salary
Answer Posted / seeman
select * from table_name t1 where (n-1)=
(select count(distinct(t2.column_name)) from table_name t2
where t2.column_name>t1.column_name)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between clustered and non-clustered indexes in ms sql server?
What is the difference between count () and rowcount ()?
do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
What is the distinction amongst delete and truncate?
How many types of functions are there in sql server?
How to round a numeric value to a specific precision?
What are scalar functions in sql?
How do users use Report Builder with SQL Server data sources?
Explain collation?
What are the system database in sql server 2005?
What are the methods used to protect against sql injection attack?
What does COMMIT command do?
How do you identify a foreign key?
What is code near application topology?