beatlejus
Member²
Hi,
I am just trying to define a separate field in my report called "EWU" with the CASE command, but get the above mentioned error. What's going wrong?
My query:
select IASSALHEAD.COUNTRY,
'EWU' = CASE iassalhead.country
when iassalhead.country in ('B','BE','SF','FI','F','FR','GR','GR','IRL','IE','I','IT','L','LU','NL','NL','A','AT','P','PT','E','ES') then 'EWU'
else 'Non-EWU'
end
from IAS.IASSALHEAD IASSALHEAD,
IAS.IASSALITEM IASSALITEM
Any help available?
I am just trying to define a separate field in my report called "EWU" with the CASE command, but get the above mentioned error. What's going wrong?
My query:
select IASSALHEAD.COUNTRY,
'EWU' = CASE iassalhead.country
when iassalhead.country in ('B','BE','SF','FI','F','FR','GR','GR','IRL','IE','I','IT','L','LU','NL','NL','A','AT','P','PT','E','ES') then 'EWU'
else 'Non-EWU'
end
from IAS.IASSALHEAD IASSALHEAD,
IAS.IASSALITEM IASSALITEM
Any help available?