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...

What is the purpose of coding FETCH in a SQL SELECT query?
Explain with an example in Detail?

Answer Posted / anandrao

FETCH will give only the number of rows equal to the number
specified with FETCH from resultset given by query.
e.g. consider ACCOUNT_MASTER table contains 100 rows.
SELECT *
FROM ACCOUNT_MASTER
FETCH FIRST 10 ROWS ONLY.
Will give only first 10 rows of ACCOUNT_MASTER table from
100 rows of ACCOUNT_MASTER table

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is commit in db2?

1046


Where do you specify them?

1268


How do you eliminate duplicate values in db2?

1169


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

3151


What is the maximum No of rows per page?

1063


What is a db2 table?

1006


How do you select a row using indexes in db2?

1131


What is the difference between cursor and select statement?

1094


What is runstats db2?

1014


What is the difference between dbm cfg and db cfg file in db2 ?

1528


What is buffer pool and list some of them?

1022


What is table space in db2?

1014


What do you mean by cursor?

988


Is it possible using max on a char column?

1134


Define predicate?

1120