Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 05 Jan 2005 @ 11:39:03 GMT


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


Subj:   Re: Conditional macro execution
 
From:   Claybourne Barrineau

Vivek,

Assuming t1.dt is not null, try:

     Create macro m1(start_dt as integer) as
     (
     sel * from t1 where :Start_Dt is null
     Union All
     sel * from t1 where t1.dt= :start_dt;
     );

Hope this helps,

Clay



     
  <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