Discussions
What's wrong with this statement?
It should evaluate to True in my result set, however, its returning false.
CASE WHEN ((CASE WHEN {trandate} >= to_date('1/1/2009', 'MM/DD/YYYY') AND {trandate} <= to_date('12/31/2009', 'MM/DD/YYYY') AND {item.custitem1} = 'License' THEN {amount} ELSE 0 END) != 0 AND (CASE WHEN {trandate} >= to_date('1/1/2010', 'MM/DD/YYYY') AND {trandate} <= to_date('12/31/2010', 'MM/DD/YYYY') AND {item.custitem1} = 'License' THEN {amount} ELSE 0 END) != 0 ) THEN 'True' ELSE 'False' END