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 get Top 10 Salaries from a Table

Answer Posted / shammi

SELECT *
FROM (select * from employee ORDER BY salary desc) employee2
WHERE rownum <= 10
ORDER BY rownum;

correct me if am wrong

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the name of some fields form sqlca.

1068


What is the usage of open cursor command?

1099


How can we retrieve the total number of records in RPG & CLLE?

646


What is the syntax for FETCH in DB2 ?

1203


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

2234


How is deadlock resolved?

1144


What are the benefits of using the db2 database?

1222


What is the physical storage length of timestamp data type?

1086


What is bind and rebind in db2?

1133


define clustering index.

1018


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1060


How can deadlocks be resolved?

930


What is the use of runstats in db2?

1101


What is a storage group (stogroup)?

1241


How do you concatenate the firstname and lastname from emp table to give a complete name?

1071