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

Can I create table without primary key?

940


what are all different types of collation sensitivity? : Sql dba

932


What is Histogram?

1506


how to convert dates to character strings? : Sql dba

1073


What are the different types of dbms?

956


Is sql scripting language?

975


Is trigger a stored procedure?

887


What are the types of optimization?

889


What are the different types of joins in sql?

1659


What is a field in a database?

1006


What is a primary key sql?

992


what is cross join? : Sql dba

941


What is rollback?

1038


what is schema? : Sql dba

987


What are the main features of cursor?

1041