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
What is a collection in db2?
What is bind and rebind in db2?
What is dbrm? What it contains? When it will be created?
Explain about cursor stability?
What does runstats do in db2?
What is consistency token in db2?
What is access path in db2?
Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....
List out the data types available.
What is dpf in db2?
Discuss about db2 bind?
Why do we bind in db2?
How to check sequence on a table in db2?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
What is a dbrm in db2?