Hi,
Please see if someone can help me on this:
I have two files:
- file_1 (col_11, col_12) and
- file_2 (col_21, col_22, col_23 ...)
Of these, file_1 is master file and is used to update data in file_2.
How to update? Read first column of file_2 (col_21) and compare it with second column of file_1 (col_12). If the two match, update first column of file_2 (col_21) with first column of file_1 (col_11).
Exception: If no matching data is found, leave the record as is AND if multiple matching records are found, use first available match.
Thanks,
Sachin
Please see if someone can help me on this:
I have two files:
- file_1 (col_11, col_12) and
- file_2 (col_21, col_22, col_23 ...)
Of these, file_1 is master file and is used to update data in file_2.
How to update? Read first column of file_2 (col_21) and compare it with second column of file_1 (col_12). If the two match, update first column of file_2 (col_21) with first column of file_1 (col_11).
Exception: If no matching data is found, leave the record as is AND if multiple matching records are found, use first available match.
Thanks,
Sachin