Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

find out the second highest salary?

Answer Posted / peter

SQL> select sal
2 from (select sal,
3 row_number() over
4 (order by sal desc ) rn
5 from emp )
6 where rn = 2;

SAL
----------
3000

SQL>

Is This Answer Correct ?    13 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a nested table and how is it different from a normal table?

1101


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

2355


How do I manually uninstall oracle client?

1145


What is system global area (sga) in oracle?

1031


What is ordinary table in oracle?

1238


Explain the use of show option in imp command.

1144


I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database

2182


How to drop an existing table in oracle?

1099


What is program global area (pga) in oracle?

1088


What is a partition in oracle?

1202


What is merge statement used for?

1072


How to delete a column in an existing table?

1128


What are the uses of linked server and explain it in detail?

1117


How to call a sub procedure?

1145


What is oracle join syntax?

1061