如何使用本机查询选项在动态ax 2012中编写连接查询?

时间:2017-01-09 13:16:52

标签: sql microsoft-dynamics

我能够在本机查询

中编写如下的简单查询
> <ns3:Object xmlns:ns2="XXXX">
>     <CompanyRanges xsi:nil="true" xmlns:xsi="XXXXX"/>
>     <DataSources>
>         <QueryDataSourceMetadata>
>             <Company xsi:nil="true" xmlns:xsi="XXXX"/>
>             <DataSources xsi:nil="true" xmlns:xsi="SSSSS"/>
>             <Enabled>true</Enabled>
>             <Fields>
>                 <QueryFieldMetadata xsi:type="QueryDataFieldMetadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>                     <FieldName>ItemId</FieldName>
>                     <SelectionField>Database</SelectionField>
>                     <TableName xsi:nil="true"/>
>                 </QueryFieldMetadata>
>             </Fields>
>             <LabelId xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>             <Name>InventTable</Name>
>             
>             <Relations xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>             <Table>InventTable</Table>
>         </QueryDataSourceMetadata>
>     </DataSources>
>     <Description xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>     <Filters xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>     <GroupByFields xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>     <HavingFilters xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>     <Name xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
>     </ns3:Object>

但我想使用本机查询在动态ax中连接多个表。 任何人都可以帮忙!

提前致谢。

0 个答案:

没有答案