Here i my Scenario
I Have First Datable :TableA
SerialNumber PartNumber
001 A
002 B
var TableA = (from p in ddata.AsEnumerable()
join q in Select.AsEnumerable()
on p.Field<string>("SerialNumber") equals q.Field<string>("SerialNumber")
select new
{
SerialNUmber = q["SerialNumber"],
PartNumber = q["PartNumber"],
UnitStatus = "HOT"
}).ToList();
Second Table :TableB
SerialNumber PartNumber
001 A
002 B
003 C
004 D
var merger = (from w in ddata.AsEnumerable()
select new
{
SerialNUmber = w["SerialNumber"],
PartNumber = w["PartNumber"],
UnitStatus = "COLD"
}).ToList();
Requirement:
Join The Two Datatables and Show Result Case if Serials is equal to both Table then Status is HOT else NORMAL.
SerialNumber PartNumber Status
001 A HOT
002 B HOT
003 C NORMAL
004 D NORMAL
Is this Possible?Thanks in Regrads?