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 Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023