2016-12-06 45 views

回答

0

使用statecode属性由active(0)/in-active(1)记录进行筛选。

SQL

SELECT top 100 * 
FROM [dbo].[Account] as account 
WHERE account.StateCode = 0 --active accounts 

FetchXml相当于:

<filter type="and"> 
    <condition attribute="statecode" operator="eq" value="0" /> 
</filter> 
相关问题