0

Given a table SALARIES, such as the one below, that has m = male and f = female values. Swap all f and m values (i.e., change al

Id Name Sex Salary 1 A m 2500 2 B f 1500 3 C m 5500 4 D f 500

21st Dec 2016, 5:24 AM
Akwin Lopez
Akwin Lopez - avatar
1 Respuesta
0
UPDATE SALARIES SET sex = CASE sex WHEN 'm' THEN 'f' ELSE 'm' END
21st Dec 2016, 5:24 AM
Akwin Lopez
Akwin Lopez - avatar