In my SQL statement I'm replacing any instance of JP with the letter 'X.
SELECT COUNTRYtable, DECODE(COUNTRYtable, 'JP', 'X')
FROM ,~OWNER~. COUNTRYtable
WHERE
COUNTRYtable = 'JP'
but.....
I want to replace all countries listed in my where clause with the letter 'x'.
SELECT COUNTRYtable, DECODE(COUNTRYtable, '?', 'X')
FROM ,~OWNER~. COUNTRYtable
WHERE
COUNTRYtable in 'JP','US','CA','KR'
Is there a similiar function that I can place in the select statement where I can replace ALL countries listed in my where clause with the letter 'x'.
Any suggestions?
Thanks
SELECT COUNTRYtable, DECODE(COUNTRYtable, 'JP', 'X')
FROM ,~OWNER~. COUNTRYtable
WHERE
COUNTRYtable = 'JP'
but.....
I want to replace all countries listed in my where clause with the letter 'x'.
SELECT COUNTRYtable, DECODE(COUNTRYtable, '?', 'X')
FROM ,~OWNER~. COUNTRYtable
WHERE
COUNTRYtable in 'JP','US','CA','KR'
Is there a similiar function that I can place in the select statement where I can replace ALL countries listed in my where clause with the letter 'x'.
Any suggestions?
Thanks