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 Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008