how to find nth highest salary
Answer Posted / bala
-- to find third highest salary from emp table
select empname,empsal from emp a where 3 = (select count(*)
from emp b where a.empsal <= b.empsal);
| Is This Answer Correct ? | 6 Yes | 12 No |
Post New Answer View All Answers
How do you Implement SSIS Packages in your Project?
What factors you will consider calculating the storage requirement for that view?
Explain the database you used in your final year project?
List out the differences between global and local temp tables in sql server?
Explain concepts of analysis services?
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
What is order of B+tree?
Will sql server 2005 allow you to reduce the size of a column?
Tell me extended events in sql server 2008?
Which sql server table is used to hold the stored procedure scripts?
What do you mean by sql server 2005 express management tools?
How to use wildcard characters in like operations in ms sql server?
What are the types of subscriptions in SQL Server replication?
How to select true false based on column value in sql server?
What the different topologies in which replication can be configured?