teknovation
asked on
Fetch XML Unions?
Does anyone know how to write a query that can replicate a SQL UNION statement in Fetch XML? I googled this and there were posts saying UNIONS are non-existent in FETCH XML.
ASKER
I couldnt figure how to do a Union with that link.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I couldnt figure how to do a Union with that link.
You're correct, FetchXml does not support Unions.
However, if you are trying achieve Union on some program, it can be achieved by concatenating the results of 2 different FetchXml query execution.
If you're trying to achieve it in an SSRS report. It is possible through a hack.
You need to create multiple DataSets. All DataSets should have 1 field common. Which can then be compared and set to get values.
Follow this link and you should be have what you want on FetchXml Union-
http://ashishmahajancrm.blogspot.com/2012/04/microsoft-dynamics-crm-2011-develop.html