How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database
plz mail the answer @ mak2786@gmail.com
Answer Posted / subhranghshu bhattacharjee
another way u can find 2nd largest salary,3rd largest
salary ... so on
select sal from(select sal from emp order by sal desc)
where rownum<3
minus
select sal from(select sal from emp order by sal desc)
where rownum<2
only change rownum to find various largest salary
Subhranghshu Bhattacharjee
| Is This Answer Correct ? | 4 Yes | 9 No |
Post New Answer View All Answers
What are different types of data sources?
What keyword you will use to get schema appended to the result set of a ‘for xml’ query?
What is normalization? Explain different forms of normalization?
what are triggers? : Sql server database administration
How to create an index on a view?
How to automatically create a log when an exception is being received into SQL Server?
Write a SQL query to make a column as unique?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
How to create dbo table in sql server?
what is unique and xaml nonclustered index
Explain what is the difference between union and union all?
What is dbcc?
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?
What is page in sql server?
What is side by side migration in sql server?