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


Please Help Members By Posting Answers For Below Questions

What is collection in db2 bind?

752


What is dbrm?

845


What are types of indexes?

758


What is precompiler in db2?

757


Is it possible using max on a char column?

821


What is isolation level in db2?

745


What is the difference between spufi and qmf?

811


ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE

1813


What is database reorganization?

814


What do you mean by storage group (stogroup)?

753


Mention the different locking levels that are available in db2.

828


Is db2 relational database?

724


Mention the definition of cobol in varchar field.

876


What is the use of value function?

823


What is meant by explain?

837