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
first find second largest salary in the emp database:
select min(sal)sal from(select sal from emp order by sal
desc)
where rownum<3
u can find 3rd,4th... so on ,only change rownum
like rownum<4,rownum<5 ... so on
| Is This Answer Correct ? | 10 Yes | 8 No |
Post New Answer View All Answers
What are the types of indexes?
What are subquery and its properties?
What stored by the master? : sql server database administration
How to create a new login name in ms sql server?
What is the Disadvantage of indexed sequential file.
Explain partitioned view?
What is the difference between mysql and sql server?
Does order by actually change the order of the data in the tables or does it just change the output?
How raid can influence database performance?
What are the pre-defined functions in the sql server?
How does stuff differ from the replace function?
What command would you use to add a column to a table in sql server?
whats new about truncate in sql server 2008?
How can we remove orphan records from a table?
Write the syntax for stuff function in an sql server?