Hi,
Can you try using join data table activity in UiPath? you can easily the expected result through this