Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 06 Apr 2007 @ 18:17:56 GMT


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


Subj:   Re: Specify input format for date
 
From:   Kopuuravuri, Ramu

Hi Anom,

If col_1 have low cardinality

     Case when col_1 = 1
          then cast ('20070228' date format 'YYYYMMDD')
          else cast ('28022007' date format 'DDMMMYYY')
          end

If col_1 have high cardinality:

     Case when col_1 = 1
          then cast ('20070228' date format 'YYYYMMDD')
          else case when col_1 = 2
                    then cast ('28022007' date format 'DDMMMYYY')
          end

Regards,

Ramu.



     
  <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