select 100 records from million records ?
Answers were Sorted based on User's Feedback
Answer / prachi
SELECT * FROM TABLENAME
FETCH FIRST 100 ROWS ONLY;
This will fetch 1st 100 records
| Is This Answer Correct ? | 20 Yes | 0 No |
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 |
what are the copybook changes generally we done?can anyone tell me......... Thanks in advance........
I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some data. In cursor3 (using for some updation) I'm using the data retrieved by the above 2 cursor. My question is, while working with cursor3, periodically if I give commit, will all the three crsors will be closed or only cursor3 will be closed?
Explain various types of locks in db2?
How do I delete a table in database?
What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;
In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned?
What are the four lockable units for DB2?
how to execute qcmdexc in rpgle?plz write code also?
List some fields from sqlca?
What is the purpose of the SDSNLOAD dataset in the STEPLIB while running DB2 programs?
select distinct(empid),distinct(dept),name from EMP will the above query work?
How can i install db2 9.x on AIX based system..? plz reply the detailed steps involved....?