Apr 13, 2011 #1 scarmie Technical User Apr 13, 2011 1 DE How can I use an And statement in cognos with LIKE CASE? e.g.: [Country] LIKE CASE WHEN (?SelectedCountry? = 'EUROPE') THEN ('%FRANCE%' AND '%GERMANY%' AND '%SPAIN%') the above is not correct, can someone help me by telling what's wrong in the above? thanks!
How can I use an And statement in cognos with LIKE CASE? e.g.: [Country] LIKE CASE WHEN (?SelectedCountry? = 'EUROPE') THEN ('%FRANCE%' AND '%GERMANY%' AND '%SPAIN%') the above is not correct, can someone help me by telling what's wrong in the above? thanks!
Apr 13, 2011 #2 blom0344 Technical User Mar 20, 2002 3,441 NL Everything.. That is not how a CASE expression works. The THEN part should return a value, not a logical expression. What are you trying to achieve? Ties Blom Upvote 0 Downvote
Everything.. That is not how a CASE expression works. The THEN part should return a value, not a logical expression. What are you trying to achieve? Ties Blom