Hi guys,Having trouble putting an If statement together regarding showing a figure in a currency.current my statement looks like this:Where h.currency_code = 'gbp'and c.ar_status = 'O'and b.offc like 'u%'
I am trying to get to:Where ifOS.Tc_code = 'GBP' THEN h.currency_code = 'gbp'and c.ar_status = 'O'and b.offc like 'u%'ELSEOS.Tc_code = 'EUR' THEN h.currency_code = 'eur'and c.ar_status = 'O'and b.offc like 'u%'
I had a look at Case statement but keeping getting a syntax error, can you help? where CASE WHEN (OS.Tc_code = 'GBP' THEN(h.currency_code = 'gbp' and c.ar_status = 'O'and b.offc like 'u%')ELSE 0 END)) OR CASE WHEN (OS.Tc_code = 'EUR' THEN (h.currency_code = 'eur' and c.ar_status = 'O'and b.offc like 'u%')ELSE 0 END))
J