I am trying to insert all rows from one table that are not present in another table.
I have the select statement working here. But I cannot figure out how to do the insert statement.
select kt_vm_product.product_id from kt_vm_product
LEFT JOIN kt_vm_product_category_xref3 ON kt_vm_product.product_id=kt_vm_product_category_xref3.product_id
where kt_vm_product_category_xref3.product_id is NULL;
I want this output to be put into the table vm_product_category_xref3 (plus two more fields that are static)