Archives of the TeradataForum
Message Posted: Tue, 07 Jul 2009 @ 10:12:34 GMT
Subj: | | Re: 7453: interval field overflow. |
|
From: | | Schabek Lukasz |
Thank you for an answer, it works, but when I trying perform this operation on TIMESTAMP it gives me same error:
SEL
CAST(CURRENT_DATE AS TIMESTAMP(2)) -
CAST('2009-07-01 00:00:00.00' AS TIMESTAMP(2)
FORMAT 'YYYY/MM/DDBHH:MI:SS.S(2)') HOUR TO SECOND(6)
What I'm trying to do is to get number of hours, minutes and seconds between current date and date from the database.
|