how to find nth highest salary
Answer Posted / rabi
SELECT A.SAL
FROM TABLE A WHERE &N=(SELECT COUNT(DISTINCT(B.SAL))
WHERE A.SAL<=B.SAL);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I create a partition table in sql server?
The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio
What is named query? : sql server analysis services, ssas
What is data mart? : sql server analysis services, ssas
How can we rewrite sub-queries into simple select statements or with joins?
Explain syntax for dropping triggers?
You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?
How will you add a dimension to cube? : sql server analysis services, ssas
What is the difference between a "where" clause and a "having" clause?
What is the difference between upgrade and migration in sql server?
How will you find out if there are expensive SQL statements running or not?
What command would you use to create an index?
What are different types of table joins?
What are the steps you must follow to hide sql server instances?
Write an sql query to find first weekday of the month?