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 retrieve 5th highest sal from emp table?

Answer Posted / venkata

hi, earlier query return sal in asending order and when
duplicate salries are there the earlier highest salary
position returns no rows. I hope this is better query.


select * from (select * from emp order by sal desc)
group by
rownum,empno,ename,job,mgr,hiredate,sal,comm,deptno having
rownum=&n

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the major difference between truncate and delete?

975


Why packages are used in oracle?

999


What is hash cluster in oracle?

1083


What is difference between sid and service name in oracle?

903


Is oracle a relational database?

870


what is the difference between substr and instr function in oracle?

1033


Explain the use of full option in exp command.

1052


How to rename an existing table?

1048


What is the difference between sharding and replication?

950


master table and child table performances and comparisons in Oracle ?

2065


What is meant by joins? List out the types of joins.

953


How to create a new table in oracle?

1062


What is a data dictionary and how can it be created?

1052


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

2062


material view and view disadvantages?

1016