Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Minute Difference Between Time Datatypes - forum topic by ciw916

$
0
0

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: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>