Hello,
I need to transport data from one table to another , where both the tables have the same number and types of attributes. While inserting the data from table1 to table2 the data in table2 should be checked whether the data to be copied from table1 already exists in table2 or not. If it does, the record should not be copied or else that record needs to be inserted. The key is based on the column let's say "Deptno", which needs to be checked before inserting data from table1 to table2.
I am using DB2 V7.2
I am aware that this process can be completed using MERGE command in V8.1 . But as V7.2 does not support that command, how do we accomplish it in V7.2
I would be very thankful if you anyone can help me out in doing this.
Thanks,
Raj