how to find nth highest salary
Answer Posted / brahma
select * from table_name t1 where (n-1)=
(select count(distinct(column_name)) from table_name t2
where t2.column_name>t1.column_name)
Is This Answer Correct ? | 101 Yes | 47 No |
Post New Answer View All Answers
Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?
what is the primary use of the model database? : Sql server administration
What do you understand by the data quality services in sql server?
What extended events?
What is a fan-out query in SQL Azure?
What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
Explain the steps needed to create a scheduled job?
How real and float literal values are rounded?
Explain boyce and codd normal form(bcnf)?
How to disconnect from a sql server using mssql_close()?
What are the hotfixes and patches in sql server?
How to handle error or exception in sql?
Why are sql functions used?
What is an indexed view?