I have to combine two datatables on the basis on column 1 and in the final datatable I want to have both common and and uncommon items in column1 of both datatables.
just like this
datatable 1 -
INR million | FY18 | 3/31/2018 |
---|---|---|
Test40 | 0 | 0 |
inventories at the end of the year:1 | 0 | 0 |
finished goods2 | 300.1019267 | 222.105 |
work-in-progress4 | 231.2314402 | 180.679 |
stock-in-trade6 | 30.15119893 | 20.776 |
Test58 | 561.4845658 | 423.56 |
inventories at the beginning of the year:9 | 0 | 0 |
finished goods3 | 222.105 | 283.595 |
work-in-progress5 | 180.679 | 258.527 |
stock-in-trade7 | 20.776 | 16.25 |
Test610 | 423.56 | 558.372 |
net (increase) decrease11 | -137.9245658 | 134.812 |
Datatable 2
INR million | FY17 |
---|---|
Test40 | 0 |
inventories at the end of the year:1 | 0 |
finished goods2 | 283.595 |
work-in-progress4 | 258.527 |
stock-in-trade6 | 16.25 |
Test58 | 558.372 |
inventories at the beginning of the year:9 | 0 |
finished goods3 | 354.123 |
work-in-progress5 | 243.616 |
stock-in-trade7 | 29.629 |
Test610 | 627.368 |
net (increase) decrease11 | 68.996 |
XX | 121 |
YY | 131 |
ZZ | 141 |
Final datatable I need after joining
INR million | FY18 | 3/31/2018 | FY17 |
---|---|---|---|
Test40 | 0 | 0 | 0 |
inventories at the end of the year:1 | 0 | 0 | 0 |
finished goods2 | 300.1019267 | 222.105 | 283.595 |
work-in-progress4 | 231.2314402 | 180.679 | 258.527 |
stock-in-trade6 | 30.15119893 | 20.776 | 16.25 |
Test58 | 561.4845658 | 423.56 | 558.372 |
inventories at the beginning of the year:9 | 0 | 0 | 0 |
finished goods3 | 222.105 | 283.595 | 354.123 |
work-in-progress5 | 180.679 | 258.527 | 243.616 |
stock-in-trade7 | 20.776 | 16.25 | 29.629 |
Test610 | 423.56 | 558.372 | 627.368 |
net (increase) decrease11 | -137.9245658 | 134.812 | 68.996 |
XX | 121 | ||
YY | 131 | ||
ZZ | 141 |
Here the line items present in Datatable 2 which , XX, YY, ZZ are not present in datatable 1 but they are present in final datatable.
In this way I want the output , both duplicate and no duplicate items from both the datatables in the final merged datatable
Please Help!!