i have error in teradata that say :
Illegal Expression In WHEN of CASE Expression
And that's my query :
SELECT
CASE WHEN Country='UK' AND Customer IN (SELECT DISTINCT Customer FROM table WHERE
Customer<>'A') THEN 'EUR' ELSE 'OTHER' END AS Continent_E
FROM table
Suppose that in my real data there are 20 distinct customers that are different to A, how can i write the query to not have an error
Can you help me Kind regards