witchblade
Programmer
I am converting data models from Informix to Teradata, and am having a difficult time with some of the SQL.
Right now I have a calculated time field in Informix that subtracts the end time from the start time, giving me a closed duration.
NOTE: Timestamp datatype in Informix is "datetime year to second", in Teradata the datatype is "timestamp".
The syntax in Informix is as follows:
(table_name.end_tms - table_name.start_dte) - (extend(table_name.start_tim , year to second) - today)
Can anyone help me convert this properly to Teradata?
Right now I have a calculated time field in Informix that subtracts the end time from the start time, giving me a closed duration.
NOTE: Timestamp datatype in Informix is "datetime year to second", in Teradata the datatype is "timestamp".
The syntax in Informix is as follows:
(table_name.end_tms - table_name.start_dte) - (extend(table_name.start_tim , year to second) - today)
Can anyone help me convert this properly to Teradata?