Question : Left Join of Two Datatables in vb.net

I've two datatables oTable and oTable1, and i've firstname, lastname and localdate in common for the two tables. I've to left join oTable and oTable1 on those columns, i've to do this because i'm getting them from two different SP's on two different servers and one server doesn't allow remote connections to write the query in one SP itself to do Cross - server joining. i've to see all rows in otable irrespective any matches in oTable1. And i've to put Result in Another Datatable (Result) in same Dataset, so that it is accessed by the Crystal Report on the other end. Please let me know if you have any ideas. The code is in vb.net.
Thanks in Advance.

Answer : Left Join of Two Datatables in vb.net

From c In oTable.AsEnumerable() _
                                Group Join p In oTable1.AsEnumerable() On c("LocalDate") Equals p("LocalDate") And c("firstname") Equals p("firstname") And c("lastname") Equals p("lastname") Into Group _
                                From p In Group.DefaultIfEmpty() _
                                Select Altigen = c, InboundShip = If(p Is Nothing, "0", p("InboundCount"))

Finally Did it in LINQ.Simple and Effective.
Random Solutions  
 
programming4us programming4us