Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 21 Aug 2012 @ 09:53:51 GMT


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


Subj:   How to replace with null if date is invalid
 
From:   Parvathareddy, Vinod

Hi All,

My requirement is I want to replace invalid date with null, I want to replace less than 1950-01-01 to null and need to replace current date + 5 years to null

Ex: date

     1949-12-31
     2010-01-01
     2012-30-30
     2020-01-01

Expected :

     Null
     2010-01-01
     Null
     null

Thanks

Vinod



     
  <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