how to find nth highest salary
Answer Posted / premsagar12
SELECT DISTINCT(A.SAL),ENAME FROM EMP A WHERE &N=(SELECT
COUNT(DISTINCT(B.SAL )) FROM EMP B WHERE A.SAL<=B.SAL);
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Mention a few common trace flags used with sql server?
How to create a Master database in SQL server ?
Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security
How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?
What are types of scd? : sql server analysis services, ssas
what is a mixed extent? : Sql server administration
What are the types of dml?
what is difference between NULL and ISNULL in SQL Server 2008?
How to get @@error and @@rowcount at the same time?
What is the definition for sql server 2000?
Write a query for primary key constraint with identity key word?
what are triggers? : Sql server database administration
What do you mean by 'normalization'?
What is the use of nvl work?
Your table has a large character field there are queries that use this field in their search clause what should you do?