Db2 Cognos日期提示特定时间未按预期工作

Db2 Cognos日期提示特定时间未按预期工作,db2,cognos,Db2,Cognos,我正在尝试创建带有日期提示的报告。我需要一个11AM到11AM数据的结果;我写的问题是 ((date(lastupdatetime) = (#prompt('Parameter1')#) and HOUR(Cast(lastupdatetime as TimeStamp))>=11) or (date(lastupdatetime) = (#prompt('Parameter2')#) and HOUR(Cast(lastupdatetime as TimeStamp))<=

我正在尝试创建带有日期提示的报告。我需要一个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))
((日期(lastupdatetime)=(#提示符('Parameter1')#)和小时(转换(lastupdatetime作为时间戳))>=11)

或者(date(lastupdatetime)=(#prompt('Parameter2')#)和HOUR(Cast(lastupdatetime作为时间戳))以下示例将从用户提示的日期返回从上午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)
#

请提供一些带有
lastupdatetime
列的示例数据和获得意外结果的参数值。因此,如果参数1=2019-09-01和参数2=2019-08-01,您希望看到2019-08-01 00:00.000和2019-08-01 11:00:00.000之间或2019-09-01 11:00:00.000和2019-09-01 11:00:00:00.000之间的lastupdatetime值23:59:59.999?