![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 05 Jan 2005 @ 11:39:03 GMT
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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||