how to find nth highest salary

Answer Posted / udathayadav

select * from tablename.aliasname where nth=select
count(sal) from tablename where aliasname.sal<=sal

Is This Answer Correct ?    38 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the new features in SSRS?

115


What is dbcc? Give few examples.

754


What are the security related catalog views? : sql server security

703


what is a transaction? : Sql server database administration

646


What is normalization of database? What are its benefits?

680






What is a rollup clause?

717


What is normalization? Describe its different types.

767


What is the purpose of the tempdb database?

747


Explain difference between cross join and full outer join?

738


What is an identity?

728


How to replace given values with null using nullif()?

722


Ways to improve the performance of a SQL Azure Database?

115


What do I need to start working with sql studio? : sql server management studio

805


What is the Difference Between Primary and Foreign Key?

751


What is a hint?

738