Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 05 Apr 2002 @ 06:25:20 GMT


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


Subj:   Re: TimeStamp subtraction
 
From:   Dieter N�th

Hi Guenter,

You tried the wrong variation ;-)

select (cast('2002-01-01 00:00:15' as timestamp(0))
         - cast('2001-12-31 23:59:50' as timestamp(0))) second;

BUT second has a default precision of 2 and a maximum precision of 4 digits, so you should probably use day/hour to second.


  Thanks in advance and nice greetings from Vienna....  


Greetings from Augsburg ...

Dieter



     
  <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: 15 Jun 2023