Select Distinct A.MyID, Title + case when D.MyID is not null then ' *' else '' end as Title , MagTitle FROM [MasterTitles] A left outer join TitleDetails D on A.[MyID] = D.[MyID] where [PropertyID] is not null ORDER BY [Title]
var qry = (from a in MasterTitles join d in TitleDetails on a.MyID equals d.MyID into grp from g in grp.DefaultIfEmpty() select new { MyID = a.MyID, Title = grp != null ? string.Concat(a.Title, " *") : string.Empty //define next fields here }).Distinct();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)