in my table i will update only 100 record among 1000
records i need to display recently updated record'.....can u
tell me where those records are stored how can i display
those records...?if there is any sql query pls let me know....?
Answer Posted / vikram
Use the below query to fetch first 100 rows among 1000 rows ,
select * from table order by column desc fetch first 100 rows
column is either timestamp or id
so the above query gives recent 100 updated rows.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a storage group (stogroup)?
what is the responsibility of the construction superintendent
What is the purpose of using commit?
How does a cursor work?
How to create backup table in db2?
can we view the access paths created by dbrm ? how ? thx
Mention some fields that are a part of sqlca.
What is syscat in db2?
What is null in db2?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2
What is role in db2?
What is db2 stogroup?
What are the uses of db2 optimizer?
Is db2 a database?
How to test SQL -911 error while developing COB-DB2 program