Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 02 Jul 2003 @ 21:58:38 GMT





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




Subj:   Re: Selecting the min. non-null date
 
From:   Rodrigo Cifuentes



You can use COALESCE for each date to eliminate NULLs:

min(coalesce(t1.date1, cast( '19000101' as date format 'YYYYMMDD') ) ,
.......




     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008