Table A has three colums. unique index on Num_col and Code_col and got 99 records
Num_col, Code_col and Days_col
10 01 007 days
10 02 010 days
.
.
10 99 015 days
Table B has two cols and got 1 million accounts
Account Days_col
1 7
2 10
3 7
...
1 million accounts
By mistake udpated table B's days_col with table A Days_col but it should update with code_col. Now i got a flag file with accounts, Days cols..
My requirement is that i need to read flat file and get account then read the table B's Days_col and then get corresponding record in table A but table A Days_col is not a index cols but it has unique records.
I know onc way can load table A in array and read table B record and search it in Array but i don't know how effiecnet. Is there any other we can code above requiremnt using DB2 query on A table.