I want to update the table and I am not known which column is going to update. Here is the simple example
Update tablename
set
if col1='A' then col1='IA',col2='XXX'
if col3='A' then col3='IA', col4='XXX'
where
(col1='A' and col2='UNKNOWN') or (col3='A' and col4='UNKNOWN')
Here either col1 or col3 surely contains 'A'
Please provide me correct query