以下两种情况有什么不同?DateRecordCreated 是一个 DTM 字段。
cast([DateRecordCreated] as date) >= '2014-07-04' and cast([DateRecordCreated] as date) <= '2014-07-10'
[DateRecordCreated] >= '2014-07-04' and [DateRecordCreated] <= '2014-07-10'
它们看起来像相同的条件,但给了我不同的结果。#2 给了我一个较低的数字。