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 query_cache_limit?

545


How does a cursor work?

558


What is the cobol picture clause of the db2 data types date, time, timestamp?

619


Why do chiropractors use drop table?

662


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

748






How can we read records for specific member in CL? AND rpg?

234


What is load replace in db2?

560


How to compare data between two tables in db2?

660


What happens in bind step in a db2 program?

569


What is the maximum No of rows per page?

628


What is clone table?

592


What is concurrency?

711


What is the result of open cursor statement?

638


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2379


What is the max length of sqlca?

768