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 rebind in db2?
What is the use of runstats in db2?
What is check constraint. Explain with example.
What is nvl in db2?
Mention the different locking levels that are available in db2.
DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?
How can deadlocks be resolved?
How to connect to db2 database from windows command line?
Can we insert update delete in view?
What is buffer pool and list some of them?
what is the sqlcode -501
What is the maximum size of a char data type in db2?
How to rename a table in DB2 ?
What is the use of reorg in db2?
How do I optimize a query in db2?