Suppose we have a query for update

update table1
set col1 = 'val1'
where col2=(select .... from ...)

suppose the subquery does not return any record, what will
happen to update?





Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select..

Answer / santosh kumar d

If the col2 field having any null value then that value to
be updated.
If col2 doesn't have any null value then record remains same
nothing will be updated.

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More DB2 Interview Questions

What are the rules for db2 programming?

0 Answers  


insert into tablename a column1, column2 select column1, column2 from tablename b i am getting abend -104..can any one help?

3 Answers   Syntel,


What is image copy?

1 Answers   Virtusa,


What is a db2 table?

0 Answers  


Why use RUNSTAT Utility?

3 Answers   Merrill Lynch,


What is the use of DELGEN in DB2? Can we Write the program with out using it?

6 Answers   Cap Gemini,


What are the benefits of using the db2 database?

0 Answers  


What is plan in cobol db2?

0 Answers  


How to resolve -917 sql code in DB2?

3 Answers   Cap Gemini,


Explain about dbrm.

0 Answers  


What is a host variable?

3 Answers  


What is a result table?

1 Answers  


Categories