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

1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / neha k

select sal
from (SELECT sal, rownum row_num
FROM emp
order by sal desc)
where row_num = 2;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a private synonyms?

1044


Give the various exception types.

997


What is a system tablespace and when it is created?

976


Explain the use of record option in exp command.

1007


How to create a table index?

1156


How to count duplicated values in a column in oracle?

1051


How to insert a record into a table?

1076


Difference between the “verify” and “feedback” command?

1372


What is pragma autonomous transaction in oracle?

1075


How to create an oracle database?

1053


What is merge statement used for?

1030


How to list all indexes in your schema?

1097


How oracle handles dead locks?

1072


What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

2081


When do I need to use a semicolon vs a slash in oracle sql?

1091