我正在尝试创建一个带有日期提示的报告。我需要一个11AM到11AM数据的结果;我写的查询是;
((date(lastupdatetime) = (#prompt('Parameter1')#) and HOUR(Cast(lastupdatetime as TimeStamp))>=11)
or (date(lastupdatetime) = (#prompt('Parameter2')#) and HOUR(Cast(lastupdatetime as TimeStamp))<= 11))而是返回全天的数据。有人能帮我吗?
发布于 2019-09-10 20:47:04
以下示例将返回从用户提示日期上午11点开始的24小时时段。
[Date] between #
prompt('FromDate','date')+' 11:00:00.000-05:00'
#
and
#
_add_hours(prompt('FromDate','date')+' 11:00:00.000-05:00',24)
#https://stackoverflow.com/questions/57864764
复制相似问题