Hi @Mansour_Dalir ,
You can refer to the following code.
Dim resultTable As New DataTable("Result")
resultTable.Columns.Add("filter")
resultTable.Columns.Add("words")
Dim query = dtParent.AsEnumerable() _
.Join(dtChild.AsEnumerable(),
Function(parentRow) parentRow("filter").ToString(),
Function(childRow) childRow("Filter").ToString(),
Function(parentRow, childRow) New With {
.Filter = parentRow("filter"),
.Words = parentRow("words")
}) _
.OrderBy(Function(row) row.Filter)
query.Select(Function(row) resultTable.Rows.Add(row.Filter, row.Words)).ToArray()
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.