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 find 1st, 2nd, 3rd highest using select select
statement not using rownum

Answer Posted / ajit

select distinct *
from (select e.*,dense_rank()over(order by sal desc) rn from emp e)
where rn in (1,2,3);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I know if oracle is installed on windows?

876


How to connect the oracle server as sysdba?

1008


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

2329


what is reindexing?

1608


How to do a full database export?

1042


What is Library Cache in Oracle?

1073


What is the max number of columns in an oracle table?

928


How to connect asp pages to oracle servers?

1002


What is parameterized cursor in oracle?

1064


What is the use of oracle?

980


How to rebuild an index in oracle?

968


What is the sql query to concatenate column values from multiple rows in oracle?

995


Can the query output be sorted by multiple columns in oracle?

933


What is oracle join syntax?

940


How to start instance with a minimal initialization parameter file?

989