Requirement: I want to query for bugs filed within 24 hours. Immaterial of when it is run on a particular day, it should take the current_date and still take the time as 8:45AM all the time. How to achieve this?
I tried
(CAST("Bug Header"."Filed Date" AS TIMESTAMP) >= TIMESTAMPADD(SQL_TSI_HOUR, -HOUR(CURRENT_DATE)+8, CURRENT_DATE-1) )
but this fails stating
State: HY000. Code: 22025. [nQSError: 22025] Function TimestampAdd is called with an incompatible type.
Please have your System Administrator look at the log for more details on this error. (HY000)
Kindly help.