how to find nth highest salary
Answer Posted / smitam
select top 1 salary from emp where (salary<(select max
(salary) from emp ))ORDER BY salary DESC
| Is This Answer Correct ? | 9 Yes | 21 No |
Post New Answer View All Answers
Do you know what is normalization of database? What are its benefits?
What are the types of database recovery models?
What do you mean by normalisation?
What is logshipping and its purpose?
Write a query for primary key constraint with identity key word?
How to use "begin ... End" statement structures in ms sql server?
Do you know the capabilities of cursors?
Determine how to use the inserted and deleted pseudo tables?
What are the new features in SQL Server 2005 when compared to SQL Server 2000?
What is the largest component inside a field?
How to use subqueries with the exists operators in ms sql server?
How do I shrink an ldf file?
What is query optimization process?
what is a sub-report?
what are constraints? : Sql server database administration