how to find nth highest salary
Answer Posted / ramakrishna
select e1.* from emp e1 where n=(select
count(distinct(e2.sal)) from emp e2 where e1.sal<=e2.sal);
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Tell me what do you mean by an execution plan? Why is it used? How would you view it?
When should you use an instead of trigger?
Can we use where clause with group by?
you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration
How to change server name in sql server?
Explain the usage of floor function in sql server.
Explain how would you store your query in an SSRS report or a Database server?
What should be the fill factor for indexes created on tables? : sql server database administration
how would you store your query in an SSRS report or a Database server?
What are the differences between local and global temporary tables?
Can two tables share a primary key?
What does it mean to be in union?
What is the main purpose of having conversation group?
Name few of the dcl commands in sql?
Give me a SQL Query to find out the second largest company?