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 / hemachandar
select * from table_name
fetch first 3 rows only;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which component is responsible for db2 startup and shutdown?
Why do we use cursor?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
How can you quickly find out the # of rows updated after an update statement?
What is db2 plan table?
What are bind parameters in db2?
what are bind concepts in db2 cobol?
List out the data types available.
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 .....
How to check table size in db2 sap?
What is an instance in db2?
Why do we need reorg in db2?
what is a corelated subquerry?
Which component is used to execute the sql statements?
How do I connect my db2 database to ibm?