I have the following insert query:
INSERT INTO dmf_val_error_log WITH min_loc_trait AS ( SELECT h.loc_trait, h.description loc_