UPDATE table SET gender =(CASE WHEN gender ='male' THEN 'female' else 'male' END)
UPDATE table SET gender =
(CASE WHEN gender ='male' THEN 'female' else 'male' END)
Update customer set Gender= case when Gender=’F’ then ‘M’ when Gender=’M’ then ‘F’ end where Gender in(‘F’,’M’)
update table_Name set Gender= Case when Gender='Male' then 'Female' else'Male' end
Update table_name set Gender= case when Gender='Female' then 'Male' when Gender='Male' then 'Female' end where Gender in('Female','Male')