how to find nth highest salary
Answer Posted / amarjit singh
--display 3rd higest salary in MSSQLSERVER
select max(sal) from emp
where sal <(select max(sal) from emp
where sal <(select max(sal) from emp
))
--By , STUDENT OF IET BHADDAL ENG COLLEGE
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I create a report based on a query? : sql server management studio
Can binary strings be used in arithmetical operations?
What is the difference between stored procedure and user defined functions?
Can you tell me some of the common replication dmv's and their use? : sql server replication
New concepts of sql server 2005 use in your project.
Explain the different types of backups available in sql server? : sql server database administration
What is @@error in sql?
Tell about MOM Tool(Microsoft Operator Manager)?
What is #table in sql server?
How to rename an existing column with sql server management studio?
What causes index fragmentation?
what changed between the previous version of sql server and the current version? : Sql server database administration
Do you know the isolation level that sql server support?
what is a transaction? : Sql server database administration
What do you need to connect php to sql server?