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

Why use resource manager in Oracle?

1110


What are the execution control statements?

1071


How to define a variable of a specific record type?

1081


How do I start tns listener?

1051


How to handle a single quote in oracle sql?

1058


What are the arithmetic operations?

1087


What is open database communication (odbc) in oracle?

1004


What is a package in oracle?

1108


What is hash cluster in oracle?

1176


Difference between oracle's plus (+) notation and ansi join notation?

1111


What is a partition in oracle?

1127


What are joins, explain all types of joins?

2299


How to create an oracle testing table?

1075


What is a tns file?

1001


What is clustered table in Oracle?

1201