So trying to do an if statement that's only executed if the 2 things are true.
I have
select
distinct E.inv_id,
E.inv_id||03,
CASE when EC.inv_color like "NO%" AND EC.web_show = 1 then 0 else 9 END
from ecat_items as E inner join ecat_item_color as EC ON E.inv_id=EC.inv_id
where E.web_show=1
But this fails so I'm wondering if I can do a multiple case statement like this.
As always thanks in advance.
-Gina
I have
select
distinct E.inv_id,
E.inv_id||03,
CASE when EC.inv_color like "NO%" AND EC.web_show = 1 then 0 else 9 END
from ecat_items as E inner join ecat_item_color as EC ON E.inv_id=EC.inv_id
where E.web_show=1
But this fails so I'm wondering if I can do a multiple case statement like this.
As always thanks in advance.
-Gina