Hi:
Not sure about what you're after. You could try something like:
WHEN ( CAST(call_end_tmstp AS DATE) = CAST(rec_last_updt_tmstp AS DATE)
AND
CAST(rec_last_updt_tmstp AS TIME(0)) > Cast('17:30:00' as TIME(0)
)
THEN 'end of day'
HTH.
Cheers.
Carlos.
↧