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

When reorg is used?

1071


What is db2 bind?

1016


Define data page.

1012


How can you count the number of rows from a table tab?

1040


What is the role of union all and union

1069


what is db2 restart?

2101


What is load utility in db2?

1130


How to find the number of rows in a db2 table?

1063


Is it possible using max on a char column?

1084


Explain about cursor stability?

981


What is dclgen in db2?

1082


What is access path in db2?

924


What is multi row fetch in db2?

986


What parameters are used to control the free space in DB2?

1009


What are the full forms of spufi and dclgen and why are they used?

1023