Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 iseries database?

989


Why cursor is used in db2?

984


How to check sequence on a table in db2?

994


What does db2 stand for?

958


What is the reason behind not using select * in embedded sql programs?

1043


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

2338


What do you mean by commit and rollback?

973


What is declare cursor?

1042


What is check constraint in db2?

1011


Mention some fields that are a part of sqlca.

969


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

1054


What is a bind card?

1141


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2778


What is null indicator in cobol db2?

991


How to find the number of rows in db2 tables?

996