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
What is measure group, measure? : sql server analysis services, ssas
What can be used instead of trigger?
How do you troubleshoot errors in a SQL Server Agent Job?
How to list all stored procedures in the current database using ms sql server?
What is after dml trigger?
what's the difference between a primary key and a unique key? : Sql server database administration
Explain primary key, foreign key and unique key?
What do you understand by mirroring and mention the advantages of the mirroring?
Differentiate between sql temp table vs table variable?
What does the on update no action do?
What is checkpoint in sql server?
What is index, cluster index and nonclustered index?
What is the cartesian product of table?
what are the new features introduced in sql server 2000? : Sql server database administration
How will you know when statistics on a table are obsolete?