1
我有两个XML的: 首先是;为ssrs查询报告目的而加入两个xml(4个数据集)?
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="invoice">
<attribute name="name" />
<attribute name="customerid" />
<attribute name="totalamount" />
<attribute name="invoiceid" />
<attribute name="new_customerno" />
<order attribute="name" descending="false" />
<link-entity name="invoicedetail" from="invoiceid" to="invoiceid" link-type="inner">
<attribute name="new_styleno" />
<attribute name="new_locationcode" />
<attribute name="invoiceid"/>
<attribute name="new_finalcmt" />
</link-entity>
</entity>
</fetch>
其次是;
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="new_creditmemo">
<attribute name="new_creditmemoid"/>
<attribute name="new_name"/>
<attribute name="new_customerno"/>
<attribute name="new_customername"/>
<order descending="false" attribute="new_name"/>
<link-entity name="new_creditmemoline" link-type="outer" to="new_creditmemoid" from="new_creditmemoid">
<attribute name="new_name"/>
<attribute name="new_creditmemoid"/>
<attribute name="new_locationcode"/>
<attribute name="new_finalcmt"/>
<order descending="false" attribute="new_name"/>
</link-entity>
</entity>
</fetch>
现在我需要合并的基础new_customerno这两个XML的。我已经尝试过,但不起作用。 有人可以帮助我吗? 谢谢
尝试http://www.sql2fetchxml.com如果你有SQL查询手中,你正在努力实现.. –