In the attached image of table ‘INVOICES’, where the Patient’s Gender is listed as m= male & f=female; is the ‘Update Statement’ quoted below correct to swap all male & female values (in other words, change all the m to f & vice versa) ?
UPDATE INVOICES
SET Sex = (
CASE Sex
WHEN 'f' THEN 'm'
WHEN 'm' THEN 'f'
END
)
Thanks in Advance