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 local and global temporary table?

1046


What is trigger and stored procedure in sql?

1034


What are different categories of sql commands?

1133


What is the use of index in hive?

1007


How insert into statements in sql?

1072


How does postgresql compare to mysql?

1034


What is left join in sql?

1049


Explain mutating table error.

1204


What is record data type?

916


What are pl sql procedures?

1024


Will truncate release space?

950


What does select * from mean in sql?

3238


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

1158


What normalization means?

978


What is the difference between joins?

1039