I get a daily feed of products in a staging table. I want to update the actual tables with records from the staging table.
Heres my query.
SELECT NUll, ColumnA, ColumnB FROM stagingTable
UNION
SELECT ID, ColumnA, ColumnB From actualTable
This gives me
NULL 10 100
NULL 20 200
NULL 30 300
1 10 100
I want to remove the duplicate record as that record is already in the actual table.
NULL 10 100