Question: how to find difference between two dates in teradata?
Answer: SELECT (DATE 'YYYY-MM-DD' - DATE 'YYYY-MM-DD') UNIT; In this special format, the extraction of higher unit value ignores the smaller unit values. For example, if we subtract two dates to get the month value (higher unit value) then the day values in the DATE values are ignored.