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


Select empno, sal from emptbl where empno < 101.By this
query can we fetch first 100 recs? where empno is primary
key.It won't throw -811 error? if it wont,then what is use
of cursor technique while fetching first 100 recs.


Please need more clarification.

Answer Posted / madhu t

If the to fetch empno and sal from emptble is written in
embedded sql then it will give sqlcode -811.
yes this query fetches first 100 records of employee table.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you use max on a char column?

1031


What is the connection string to connect to the DB2 Database ?

1062


What are union and union all?

920


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

1221


What is precompiler in db2?

960


How do you select a row using indexes in db2?

1075


Can there be more than one cursor open for any program?

1125


What are the different types of base tables?

1029


What is release/acquire in bind?

1058


Which command is used to connect to a database in DB2 ? Give the Syntax.

1032


What is difference between alias and synonym in db2?

1072


What is the role of the data page in the db2 database?

975


How do we specify index to include or not during bind process.

2072


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

2340


is it compulsory commitment control in journal?

2419