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
Does view occupy space?
What is 2nf example?
Please illustrate physical database architecture? : SQL Server Architecture
What are the types of resultset?
What is the purpose of the model database?
What is the recommended total size of your memory optimized tables?
Can a rule be bound to any column of any data type?
What is unpivot?
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
Mention the different authentication modes in sql server.
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
Is it possible for a stored procedure to call itself or recursive stored procedure?
How to include date and time values in sql statements?
Explain boyce and codd normal form(bcnf)?
What are the 3 types of schema?