One way to do it is as follows (i am showing col1, col2 just for illustration. You might have more or less number of columns to insert):INSERT INTO ARchiveTable (pk, col1, col2)
SELECT t.pk, t.col1, t.col2 FROM
TEMPtable t
WHERE NOT EXISTS (SELECT * FROM ArchiveTable a WHERE a.pk = t.pk)