Archives of the TeradataForum
Message Posted: Tue, 06 Sep 2011 @ 22:54:23 GMT
<-- Anonymously Posted: Tuesday, September 06, 2011 18:32 -->
I have attribute with TRANSTime Decimal(6). However the value in that are six hour more than the time, suppose my time is 19:30:42 then it stored as 253042. Besides to the TRANSTIME I have a valid date now I want to convert it to equivalent Timestamp. with -6 hours. I am finding difficult to convert as the input DataType is Decimal(6).
The below is not working
CAST(TRANSDATE AS DATE) || ' ' || CAST(TRANSTIME AS TIME)-INTERVAL '06' HOUR
Kindly help me.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|