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
What is efficiency data?
What is a trace frag? Where do we use it?
What is an active database?
What are the different methods available under sqlcommand class to access the data?
Is it possible to update the views? If yes, how, if not, why?
How to use transact-sql statements to access the database engine?
Do you know what is replace and stuff function in sql server?
Can we take the full database backup in log shipping?
Does an index slow down updates on indexed columns?
What is model database? : SQL Server Architecture
What is conditional split?
What are various aggregate functions that are available?
What is the use of toad or sqldbx.?
Is mysql the same as sql server?
What is the difference between a function and a stored procedure?