My back end is Teradata.
I was using
ApplyComparison ("#0 >= (select max(dte_key_num)-45 from views.time_detail from refrnc_dte < current_date ) AND #0 <=(select max(dte_key_num) from views.time_detail from refrnc_dte < current_date )", Date@[Date Key Num])
Agree with kpescatore, as you are using Current Date, then use dynamic dates. Current date - 45 days. Simple. It will make for more efficient SQL too as you will get a "DateField = 'ccyy-mm-dd' clause rather than a subquery.
I would only use the Applysimple here if youyr date table is not matching your current date - i.e. you plan to run after midnight and still call yesterday, today (and today's date is the latest value on the date table).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.