wht displays the number of times a query modified ?

Answers were Sorted based on User's Feedback



wht displays the number of times a query modified ?..

Answer / ramakrishna javvaji

SQLERRID(3) field of SQLCA will have no of updates that the
query made.

Is This Answer Correct ?    6 Yes 2 No

wht displays the number of times a query modified ?..

Answer / mehdee

- If you mean what displays the number of time that a DB2
row has been modified, then my answer is when you create
this DB2 table add a column like SEQ_NUM and as you define
it like SMALLINT, right there you can have it increamented
by 1. Please look into manual for it's exact format.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB2 Interview Questions

Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2  how will we do this.  We can create a single program and a single load for this program. 

2 Answers   RBS,


quary for 1> fetch last record 2> fetch in reverse order 3> fetch last 5 row 4> fetch second last record (their is no primary key) i think concept of count can be use for this in 4th

5 Answers  


Where is the access path logic created by the DB2 Optimizer stored?

1 Answers  


can any one expalin check point with an example?

1 Answers  


In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

2 Answers  






How do you eliminate duplicate values in db2?

0 Answers  


When the like statement is used?

0 Answers  


How do you define a correlated name?

1 Answers  


Define predicate?

0 Answers  


Can we able to find all the Table names under a Particular Plan?

1 Answers   CTS,


What is filter factor?

2 Answers  


What is commit in db2?

0 Answers  


Categories