 |
 |
Archives of the TeradataForum
Message Posted: Tue, 04 May 2004 @ 16:52:17 GMT
Subj: | | Re: Converting time in miliseconds to TIEMSTAMP in teradata |
|
From: | | Maxwell, Donald |
The only general workaround I can see is to split the interval into the non-seconds and seconds components, apply the multiplication seperately
on each component, and then add them back together. Of course, this is very complex.
eg.
SELECT
INTERVAL '00:00:01.999' HOUR TO SECOND A
,2095 M
,M * ( A - CAST ( EXTRACT(SECOND FROM A) AS INTERVAL SECOND ) )
+ M * EXTRACT(SECOND FROM A) * CAST('00:00:01' AS INTERVAL HOUR TO SECOND )
Donald Maxwell
| |