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

select salary from
(select salary,rownum from salary_tab
order by salary_tab desc)
where rownum < 4;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1128


What is cross join sql?

868


what is self-join? : Sql dba

1057


What are analytical functions in sql?

972


where are cookies actually stored on the hard disk? : Sql dba

977


What are sql functions? Describe in brief different types of sql functions?

1013


How many joins can you have in sql?

881


How do you identify a primary key?

1013


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

3928


What is a database trigger?

1019


What is the difference between numeric and autonumber?

942


What is not equal in sql?

1012


Show the two pl/sql cursor exceptions.

1110


Which is faster union or join?

903


how to get @@error and @@rowcount at the same time? : Sql dba

970