Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ and this one: <= NOW() → not in the future
Together, they produce exactly the last 24 hours, nothing more.
*/
WHERE CAST(enddate AS DATE) = TIMESTAMPADD('SQL_TSI_DAY', -1, CAST(NOW() AS DATE))
AND CAST(enddate AS DATE) <= CAST(NOW() AS DATE)
AND CAST(enddate AS DATE) <= CAST(NOW() AS DATE)
AND Id.demographics.calculated_status = 'Alive'