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 it unwise to create wide clustered index keys?
What xml support does the sql server extend?
What are constraints in microsoft sql server?
What stored by the master? : sql server database administration
How is a full-text index updated?
What is a result set object returned by odbc_exec()?
When columns are added to existing tables, what do they initially contain?
How can I create a report based on a query? : sql server management studio
What are user defined functions in ms sql server?
How to encrypt data between dialogs?
What is partition, how will you implement it? : sql server analysis services, ssas
What are the indexes in sql server?
If user is owning any SQL Objects, can we drop that user
What is sql view?
How to generate random numbers with the rand() function in ms sql server?