 |
 |
Archives of the TeradataForum
Message Posted: Tue, 09 Mar 2010 @ 16:22:22 GMT
Subj: | | Re: NUMTODSINTERVAL in Teradata |
|
From: | | Dieter Noeth |
Alves, Patrick wrote:
> NUMTODSINTERVAL(150,'SECOND')
>
> ---------------------------------
> +000000000 00:02:30.000000000
select 150 * interval '0000 00:00:01' day to second
> NUMTODSINTERVAL(155,'HOUR')
> ---------------------------------
> +000000006 11:00:00.000000000
select 155 * interval '0000 01:00:00.000000' day to second
It's limited to 9999 days, but this is usually enough
Dieter
| |