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 the top 3 salaries of the table using rownum

Answer Posted / kalyan kumar

select e.ename,e.sal from emp e where 3>(select count
(distinct(b.sal)) from emp b where b.sal>e.sal)

Is This Answer Correct ?    19 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between microsoft sql and mysql?

951


What is rowtype?

999


What are the different parts of a package?

1100


What does data normalization mean?

942


explain the delete statements in sql

1028


Can we delete column in sql?

1078


What are different types of triggers?

1085


How can I change database name in sql?

1051


What does select count (*) mean in sql?

1005


Does inner join return duplicate rows?

962


How we can update the view?

1039


How do I run a pl sql procedure in sql developer?

953


what happens if null values are involved in expressions? : Sql dba

1029


Is primary key a clustered index?

959


What is normalisation in sql?

1041