How can I code a conditional SQL in the Report query builder
to include a WHERE clause parameter or not, depending on the value
of a report parameter? Basically, what I want to do is:
select field from table where x=1
<cfif param.a eq 1>and a=1</cfif>
Report builder does not like this, but I can't find any help on how to do this.
select field from table where x=1
<cfif param.a eq 1>and a=1</cfif>
Report builder does not like this, but I can't find any help on how to do this.