how to find nth highest salary
Answer Posted / sudhir
DISPLAY THE RECORDS WHO'S GETTING 3RD HIGHEST SALARY.
SELECT * FROM EMP E1
WHERE 3 =(SELECT COUNT(DISTINCT(SAL))
FROM EMP E2
WHERE E1.SAL <= E2.SAL)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What is the syntax for encrypting a column in SQL Server?
What do you understand by the denormalisation?
Does order by actually change the order of the data in the tables or does it just change the output?
What is spid in sql server profiler?
Where do we use trace frag?
What program is used to store the data source file?
You want to implement the many-to-many relationship while designing tables. How would you do it?
what are the core components of SSRS?
Define inner join? Explain with an example?
How to insert multiple rows with a subquery?
What is the difference between writing data to mirrored drives versus raid5 drives
What are the 2 types of classifications of constraints in the sql server?
What is the use of stored procedure?
Can we perform backup restore operation on tempdb? : sql server database administration