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

Shall i use this query to retrieve first 4 records,

Select empno, sal from emptbl where empno < 5. like this can
we fetch first 100 records?

Answer Posted / madhu t

if empno is a primary key then the records in table are
stored in ascending order of empno. hence we can use empno
< 5 to fetch the first 4 records of table.
There is also a standar query to fetch the first 10/100/200
records as below...
select empno,sal from emptble fetch first 100 rows only;

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bind package and plan in db2?

1051


What is the difference between using bind () and rebind () methods of naming class?

1389


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

1054


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

1086


can all users have the privilage to use the sql statement select * (dml)?

1162


Give the name of some fields form sqlca.

1071


What is db2 stogroup?

1154


How is a typical db2 batch pgm executed?

1171


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

1233


Can we update view in db2?

998


What is runstats db2?

1014


What are iseries servers?

1071


How can we read records for specific member in CL? AND rpg?

692


What is database manager in db2?

1013


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

1099