![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 07 Jul 2009 @ 12:56:25 GMT
Hi, The INTERVAL precision maximum is 4. In case if date is earlier than 2008 (number of hours > 9999) then need to go for DAY For example:
SEL
CAST(CURRENT_TIMESTAMP AS TIMESTAMP(6)
FORMAT 'YYYY/MM/DDBHH:MI:SS.S(6)') -
CAST('2007-07-01 01:03:00.00' AS TIMESTAMP(2)
FORMAT 'YYYY/MM/DDBHH:MI:SS.S(2)') DAY(4) TO SECOND(6) AS TIME_1
Thanks, Ragavendran
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||