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...

how to get second highest sal of emp table

Answer Posted / amit bhagat

select min(a.sal) from (select disctinct d.sal from emp d
order by sal desc) a where rownum<=2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use subqueries in the from clause in oracle?

1113


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

2265


How to create a stored function in oracle?

1105


How to view existing locks on the database?

1053


What is oracle analytical function?

1145


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1848


What is set operator oracle?

980


Why does oracle 9i treat an empty string as null?

1056


How to turn on or off recycle bin for the instance?

1085


How to install oracle database 10g xe?

1020


Explain parameter file in oracle.

1030


What is the data type of dual table?

995


State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

1034


What is dual table oracle?

984


How many types of cluster table in Oracle?

1034