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 / vivek dubey

select salary_column from salary_table
where rownum<4
order by salary_column desc

Is This Answer Correct ?    24 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a temporal data type?

981


How do you get column names only for a table (sql server)?

1101


Describe types of sql statements?

993


What are the 3 modes of parameter?

1103


What is partition by in sql?

1002


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

988


Why do we create stored procedures & functions in pl/sql and how are they different?

889


what is normalization? : Sql dba

1018


How many types of normalization are there?

901


what is the difference between a local and a global temporary table? : Sql dba

1006


What is interval partition?

987


Can ddl statements be used in pl/sql?

1069


What is rownum and rowid?

985


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

2203


What are sql commands?

938