An import error reversed the employee sex codes in the Salary table. Change m to f and f to m. Update all rows in a single operation, without auxiliary tables or intermediate values.
Solution requirement
Just INSERT/UPDATE/DELETE — no trailing SELECT needed.