So I have an empty target table that I am wanting to copy all the records into from an existing Report table. However, the existing Report table does not have any primary keys, and my new target table does. I want to copy over all the records from the existing Report table that are not duplicates on "Report.field1" and "Report.field2" and they are not NULL in either one as well.
Is there a quick and dirt way to do that? Like:
INSERT INTO target REPORT
ON CONFLICT SKIP