Archives of the TeradataForum
Message Posted: Thu, 01 Jul 2004 @ 19:36:33 GMT
Yes, it's too much effort. There should be a seperate Masters exam solely for timestamps and intervals.
Anyway, the first does what you want if you cast the DECIMAL(5,1) AS INTERVAL SECOND(4,1), at least on my machine.
I guess rounding is difficult to implement with multi-part interval datatypes, where the round-up in the SECONDS part can spill over into the MINUTE/HOUR/DAY parts?
I wish they would just implement a full YEAR TO SECOND interval datatype with the ability to directly CAST ( TIMESTAMP AS YEAR TO SECOND ) and vice versa. Oh well ...
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|