【发布时间】:2013-09-10 09:40:35
【问题描述】:
我想在 Dynamics CRM 报告中使用此 SQL。我不知道如何将其转换为 Fetch-XML。
select p.ProductNumber "Plan Number",p.Name,p.price "Monthly Rate",count(*) "Group", '0' "Direct Debit"
from contact c,product p
where c.integ_schemeid = p.ProductId
and c.ParentCustomerId is not null
group by p.ProductNumber,p.Name,p.price
union
select p.ProductNumber "Plan Number",p.Name,p.price "Monthly Rate", '0' "Group", count(*) "Direct Debit"
from contact c,product p
where c.integ_schemeid = p.ProductId
and c.ParentCustomerId is null
group by p.ProductNumber,p.Name,p.price
http://www.sql2fetchxml.com 在这种情况下失败。
【问题讨论】:
标签: tsql dynamics-crm-2011 dynamics-crm fetchxml