Answer Posted / sree
SELECT * FROM TABLENAME ORDER BY PRIMARYCOLUMNNAME DESC
FETCH FIRST 5 ROWS ONLY ;
THIS ANSWER IS VALID ONLY IF THERE IS A PRIMARY KEY
COLUMN,OTHERWISE IT WONT WORK
IF THERE IS NO PRIMARY KEY COLUMN IN GIVEN TABLE ,I DON'T
KNOW THE ANSWER
FOR FETCHING FIRST 5 ROWS
SELECT * FROM TABLENAME FETCH FIRST 5 ROWS ONLY;
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
Can one database have multiple instances?
How do I add a column in db2?
What is buffer pool in the db2 database?
How to get the ddl of a table in db2?
How is the value function used?
What is a plan and package in db2?
Before you give the explain statement, what are the prerogatives?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2
How does cobol compile db2 program?
List some fields from sqlca?
What is the difference between cursor stability and repeatable read isolation levels?
What are the different types of base tables?
What is the use of with ur in db2?
What is db2? Explain.