Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use LIKE CASE WHEN with AND

Status
Not open for further replies.

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!
 
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top