I'd like to create a dynamics CRM 2013 report which basically joins one table to a union of two other tables, with a left outer join. I believe that the outer join is now not a problem with the latest version, however there is still no union equivalent. What would be the best way to achieve this? I need the union as I want to sort data from two tables on a date column that is in both. Please see below for a tsql representation.
select * from
Record as rec
LEFT OUTER JOIN
(select * from Data1 as d1
UNION
select * from Data2 as d2) as data
on
rec.recordId = data.RecordId
order by rec.recordId, data.Date