how can we retrieve the 100 records of the file ?

Answers were Sorted based on User's Feedback



how can we retrieve the 100 records of the file ?..

Answer / lu

your qestion is not clear ??? first 100 rows or 100 rows
any where ??
this is FIRST 100 row :
SELECT * FROM TABLE
FETCH FIRST 100 ROWS ONLY
now if u want retrieve 100 rows in any table, you have to
create a counter ....

Is This Answer Correct ?    10 Yes 1 No

how can we retrieve the 100 records of the file ?..

Answer / anjireddy vintha

select * from tabblename where rownum<101

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More DB2 Interview Questions

What is a view? Why use it?

3 Answers  


what is load and unload in db2

1 Answers   IBM,


What is the difference between TYPE 1 index & TYPE 2 index

1 Answers   IBM,


how to resolve -811

2 Answers   IBM,


What is query for your birthday date should be in hours,minute and seconds format?

1 Answers   Fidelity,






Are views updateable?

0 Answers  


What is a page?

2 Answers  


Name some fields from SQLCA

1 Answers  


what is the difference between declaring the cursor in WS section and Procedure division?

1 Answers   HCL,


What is a system catalog table in db2?

0 Answers  


What if we try to insert the base table through updatable view , but failed to give a column value which is defined as NOT NULL.

1 Answers   Cap Gemini,


What is meant by a unit of recovery?

1 Answers  


Categories