UPDATE
statement to indicate that we are modifying the Salary
table.SET
clause to specify the column we are updating, which is the sex
column.SET
clause, use a CASE
statement to evaluate the current value of the sex
column.sex
using the WHEN
clause.THEN
to set it to 'f'.ELSE
to set it to 'm'.CASE
statement with END
to complete the conditional logic.erDiagram Salary { int id PK varchar name ENUM sex int salary }