how to find nth highest salary
Answer Posted / ayush sharma
select sal from (select distinct sal from emp order by desc)
where rownum <=n minus select sal from(select distinct sal
from emp order by desc) where rownum<=n-1;
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?
Explain stored procedure?
Name few of the dcl commands in sql?
Tell me what is log shipping?
Why are you getting errors when creating a new odbc dsn?
What are the main differences between #temp tables and @table variables and which one is preferred?
What is sql stored procedure?
Where are sql server user names and passwords stored in sql server?
Why does sql studio use a single registered database repository? : sql server management studio
What is the maximum row of a size?
How to add additional conditions in SQL?
Write a sql query to get zero records from a table having n number of records?
When you should use a low fill factor?
what exactly sql injuction.how to overcome.....
What is triggers in ms sql server?