Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 10 Oct 2002 @ 20:21:06 GMT


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


Subj:   Re: Number of days between two dates
 
From:   Tressler, Dara C.

This works for me

select date - ('20020101' (date, format 'YYYYMMDD') )

it returned 285.

whereas (date - '2002-01-01') returned -18999091.00000



     
  <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