1.-我第一次做查询时,我不知道如何获得交叉加入
2.-我知道这个例子是内部连接,不是吗?我认为这句话";从=";accountid";to=";customerid"这视为内部联接那怎么会是交叉连接呢?
3.-我在上复制了这个例子http://mscrmshop.blogspot.mx/2012/09/outer-joins-in-fetch-xml-queries-in.html
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="opportunity">
<attribute name="name" />
<attribute name="customerid" />
<attribute name="estimatedvalue_base" />
<order attribute="name" descending="false" />
<link-entity name="account" from="accountid" to="customerid" visible="false" link-type="outer" alias="accountid">
<attribute name="telephone1" />
</link-entity>
</entity>
</fetch>
Fetch XML不支持交叉联接。
下面的链接中建议了另一种替代解决方案。请看看这对你的案子是否有用。
http://social.microsoft.com/Forums/en-US/e3ee734c-81d3-4277-b54f-c2e46bb20e0d/crm-2011-sql-cross-join-equivalent-fetchxml-in-report?forum=crmdevelopment