select 100 records from million records ?

Answers were Sorted based on User's Feedback



select 100 records from million records ?..

Answer / prachi

SELECT * FROM TABLENAME
FETCH FIRST 100 ROWS ONLY;

This will fetch 1st 100 records

Is This Answer Correct ?    20 Yes 0 No

select 100 records from million records ?..

Answer / ankit.:-)

if u want to fetch first 100 go for

select * from tablename fetch only 100 rows;

this will select only 100

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More DB2 Interview Questions

Explain dclgen.

0 Answers  


What are iseries servers?

0 Answers  


Is it possible to create an Instance in DB2 using DB2 Control Center ?

0 Answers   MCN Solutions,


what are the frequent DB2 abends did you encounter in your programs ?? What are different SQL abends ??

4 Answers   Xansa,


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

0 Answers   Infosys,






B37 abend during spufi?

0 Answers   IBM,


we can code COPY DCLGEN or INCLUDE DCLGEN, At which stage of the precompilation , dclgen get expanded if we write 1) copy 2) include one question about dclgen.. Is it mandatory to use declare table in dclgen.. I think no...but it will be used by the precompiler to validate the table name,column name etc.., can one clear my doubt ..is it necessary to include declare table or not?

2 Answers  


What is REORG? When is it used?

4 Answers  


how can we retrieve the 100 records of the file ?

2 Answers   IBM,


how to resolve -811 sqlcode .give clear explaination

3 Answers   IBM,


What's The Error Code For Unique Index Voilation?

0 Answers   IBM,


Explain in brief how does db2 determine what lock-size to use?

0 Answers  


Categories