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
How to create db2 table in mainframe?
What is release/acquire in bind?
What is host variable?
Which isolation level provides highest data integrity?
What action db2 takes when a program aborts in the middle of a transaction?
What is the difference between nvl and coalesce?
What is meant by dclgen?
How does db2 sample database connect?
How to retrieve rows from a db2 table in embedded sql?
What do you mean by rollback?
What is load replace in db2?
What db2 400?
What is coalesce in db2?
What is iseries database?
What is the cobol picture clause of the db2 data types date, time, timestamp?