Hi,
I have one dataset and one Mapping file, example below:-
Data
| FN | LN | SAL | ADRESS |
| James | Smith | 100 | CALIFORNIA |
| Roberts | William | 200 | MAXICO |
| Michael | Brown | 300 | HOUSTON |
| David | Millar | 400 | NEW YORK |
Mapping File :-
| New_Col | Old_Col |
| FIRST_NAME | FN |
| LAST_NAME | LN |
| SALARY | SAL |
| ADDRESS1 | ADRESS |
| ADDRESS2 | ADRESS |
| ADDRESS3 | ADRESS |
I want to replace the old column name from dataset to new column name which as per mentioned in mapping file.
So my expectation is below
| FIRST_NAME | LAST_NAME | SALARY | ADDRESS1 | ADDRESS2 | ADDRESS3 |
| James | Smith | 100 | CALIFORNIA | CALIFORNIA | CALIFORNIA |
| Roberts | William | 200 | MAXICO | MAXICO | MAXICO |
| Michael | Brown | 300 | HOUSTON | HOUSTON | HOUSTON |
| David | Millar | 400 | NEW YORK | NEW YORK | NEW YORK |
It would be great if you can help me to provide the expected output. As i tried with dynamic rename tool but it wont work if there is duplicate column name.
Please assist. Thank you in advance.