Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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
0