I would like to compare two columns, A and B.
If Col A and Col B share the same value, I would like Col A to have a no value set. If Col A and Col B do not share the same value, I would like Col A to keep the original value it has.
Below is what I attempted. However, it returns "true" for all entries in the case column - Col A (corrected).
select *,
case when 'Col A' = 'Col B'
then 'Col A' = null
else 'Col A' = 'Col A'
end as "Col A (corrected)"
from my_table
'Col B'.