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 / swapnareddy

select sal from emp a where 3>(select
count(distinct(sal))from emp b where a.sal<b.sal);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql backup shrink transaction log?

953


How to place comments in pl/sql?

1141


What are sql procedures?

1005


How to test for null values?

1023


What is compute?

1071


What does the hierarchical profiler does?

1047


Which is better cte or subquery?

1012


how to include character strings in sql statements? : Sql dba

1044


What is the difference between unique and primary key constraints?

1047


What is snowflake sql?

1049


Explain what is dbms?

1038


Can you sum a count in sql?

985


What is difference between sql and excel?

1067


How will you distinguish a global variable with a local variable in pl/sql?

1131


Why does sql need a server?

1019