(From e In dt
Group Join d In dt1 On e(“IDLop”).ToString Equals d(“ID”).ToString Into empDept = Group From ed In empDept.DefaultIfEmpty()
Group Join k In dt_truong On e(“IDTruong”).ToString Equals k(“ID”).ToString Into empTR = Group From ek In empTR.DefaultIfEmpty()
Select dt_tong.LoadDataRow (New Object() {
e(“ID”).ToString,
e(1).ToString,
If(ed Is Nothing, “NULL”, ed(“TenLop”).ToString),
If(ek Is Nothing, “NULL”, ek(“TenTruong”).ToString)
},False
)).CopyToDataTable