How to merge more than one datatables using LINQ using Uipath

Problem statement : we have 3 three different tables that comes from different source in the same format and requirement here is to combine all the tables into one

Here are the datatables
dt1

dt2

dt3

Drag the assign activity to the workflow, run the following query
Query

Lets see the output in action

Medium Article :- How to merge more than one datatables using LINQ inUipath - Manoj Batra - Medium

Code Link : UiPathSamples/03 - MergeDatatableUsingLinq at main · manojbatra071/UiPathSamples · GitHub

Youtube Link: Merge Datatables using LINQ in UiPath - YouTube

Happy Automation