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
Explain microsoft sql server functions?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
How to provide default values to function parameters?
What is triggers and stored procedures?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?
what kind of lan types do you know? : Sql server database administration
Do you know clustered and non-clustered index?
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
Difference between Sql server reporting services and Crystal reports?
Which tools are available to manage SQL Azure databases and servers?
Difference between 2NF &3NF ?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
What are relationships and mention different types of relationships in the dbms
plss anybody specify tha constrian management system in dbms
Tell me what are cursors and when they are useful?