if there is a table with huge number of records and if i
want to extract only first 3 records from the table, what
query i have to provide to retreive first 3 records

Answer Posted / viji

If there is any specific order they have to be fetched then use fetch first 3 records only.
Without order by, fetch first 3 records only will retrieve any 3 records in random order.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I delete a column in db2?

851


What is the syntax for FETCH in DB2 ?

890


Define predicate?

852


What does db2 stand for?

761


Why do we bind in db2?

857


What is load utility in db2?

874


What is a db2 package?

783


What does db2 blu stand for?

874


What is the reason behind not using select * in embedded sql programs?

827


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2895


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

827


Define data page.

804


What is the maximum size of varchar data type in db2?

837


What is blu acceleration in db2?

809


What is buffer pool?

835