I need to analyze the time interval difference from two dates in Amazon-Redshift, for example:
'2021-10-13 14:37:00' - '2021-10-13 12:00:00' = '02:37:00' or in case the days is different:
'2021-10-13 14:37:00' - '2021-10-12 12:00:00' = '26:37:00' I figured out only datediff() function. This function only return part from what I want.
So, is there a way better to return the result that I need?