Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 10 Oct 2002 @ 20:15:38 GMT


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


Subj:   Re: Number of days between two dates
 
From:   deWet, Johannes M

Rajech,

Your problem is the format of '2002-01-01'. Try this:

select (date - cast('2002-01-01' as date format 'yyyy-mm-dd'));


Hope this works for you.

Johannes



     
  <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