I have the following:
INSERT INTO employees_x_departments(
employees_x_departments_pay_rate,
employees_x_departments_pay_type,
employee_id,
department_id
)
SELECT
DepartmentRate,
DepartmentRateType,
employee_id,
Department
FROM d_view WHERE employee_id IS NOT NULL
The problem is that the DepartmentRateType is a STRING and the employees_x_departments_pay_type field is an ENUM
When I run the above, everythign works good except I get empty strings for the employees_x_departments_pay_type field. When I run just the select portion of the above, I get values that match the ENUM values. Can anyone see what I am missing here?
Thanks for any help you may offer.