# How to Join Datatable via Code

**URL:** <https://forum.uipath.com/t/how-to-join-datatable-via-code/156096>\
**Category:** Help\
**Tags:** datatable, system, activities\
**Created:** [October 3, 2019, 4:30am UTC](https://forum.uipath.com/t/how-to-join-datatable-via-code/156096 "2019-10-03T04:30:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sureshj](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sureshj/32/176664_2.png) [@sureshj](https://forum.uipath.com/u/sureshj)\
**Post date:** [October 3, 2019, 5:42am UTC](https://forum.uipath.com/t/how-to-join-datatable-via-code/156096/2 "2019-10-03T05:42:19Z")

</div>

@mayuyu

Refer This,

> [@How to join two datatables using LINQ with identity column and it should select only specific columns from both datatable and it should not null value to merge while we match identity column](https://forum.uipath.com/t/how-to-join-two-datatables-using-linq-with-identity-column-and-it-should-select-only-specific-columns-from-both-datatable-and-it-should-not-null-value-to-merge-while-we-match-identity-column/127261):
>
> while joining two tables with identity column username it should allow null values as shown in output screenshot

> [@Join Two DataTables](https://forum.uipath.com/t/join-two-datatables/87/25):
>
> Hello Samir!! Thanks for your solution. I need to ask how to join 2 different sheets of Single Excel Workbook into single excel sheet. I want to merge two excel sheet into one sheet. I have excel workbook SampleClientsData.xlsx. It contains 2 different sheets first is “Client\_Members\_Sheet” and another is “Sales\_Member\_Sheet”. I want to get Sales\_Member\_Sheet data into Clients\_Members\_Sheet without blank columns and proper data. I tried using Merge Datatable. But it is not working. It is adding …

Thanks,  
Suresh J

---

_[View the full topic](https://forum.uipath.com/t/how-to-join-datatable-via-code/156096)._
