how to fetch first 100 rows in db2

Answers were Sorted based on User's Feedback



how to fetch first 100 rows in db2..

Answer / sesha

SELECT * FROM TABLE
FETCH FIRST 100 ROWS
ONLY

Is This Answer Correct ?    34 Yes 2 No

how to fetch first 100 rows in db2..

Answer / jagan

select top 100 from tableName;

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More DB2 Interview Questions

What if we fail to give values in columns declared as NOT NULL ?

3 Answers   Cap Gemini,


What is the picture clause of null indicator variable?

0 Answers  


What is COPY PENDING status?

6 Answers  


Which transaction use a command thread ?

1 Answers  


Explain the use of the WHERE clause?

1 Answers  






What is a DB2 plan?

8 Answers  


What does reorg do in db2?

0 Answers  


What is the usage of open cursor command?

0 Answers  


What are the disadvantages of PAGE level lock?

3 Answers  


I have 1000 rows in a db2 table.I want to update first 100 records,How do I do it?

4 Answers   CTS,


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

0 Answers  


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

0 Answers   MCN Solutions,


Categories