Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 01 Jul 2004 @ 19:36:33 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Aiii, INTERVALs!
From:   Maxwell, Donald

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 ...

Donald Maxwell

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 23 Jun 2019