Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 06 Jul 2009 @ 13:07:59 GMT

  <Prev Next>  
Next> Last>>  

Subj:   7453: interval field overflow.
From:   Schabek Lukasz


I have some problem with date calculation.

I'm trying to get number of seconds between two dates, but it only works for a small scale like few days earlier:


     SEL CAST(((DATE - DATE '2009-07-01') DAY) AS FLOAT)*24*60*60

Doesn't work:

     SEL CAST(((DATE - DATE '2008-07-01') DAY) AS FLOAT)*24*60*60

I'm out of ideas..

Could you tell me please, what I'm doing wrong?

Best regards


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