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 is difference between alias and synonym in db2?
What is bind in db2?
what is diffrence b/w file-aid tool and file-aid utility???
Is it possible to create an Instance in DB2 using DB2 Control Center ?
How is deadlock resolved?
What is db2 and what is the use of db2 optimizer?
What is the physical storage length of date data type?
List out the three types of page locks that can be held.
Mention the location where the output received from explain statement is stored.
How can you classify the locks in db2?
What is consistency token in db2?
B37 abend during spufi?
What is the latest version of ibm db2?
What language is db2 written in?
How do I create a view in db2?