I am trying to filter transactions that are less than 5 minutes apart. In trying to develop this filter, I keep running into error messages. The two columns I need to find the difference for are TIME datatypes:
(SEC.CALL_START_TM-PRI.CALL_END_TM) AS TIME_DIFF
The above does not work. I've tried casting into a varchar, and time format hh:mm:ss to subtract. Nothing seems to be working. How would you write the statement to return a result that I can use WHERE TIME_DIFF <= '00:05:00'?
Forums: