When using a COPY command in Redshift, which SQL technique best avoids duplicate rows if the load is rerun?
-
A
Using UPSERT with ON CONFLICT
-
B
Using a staging table with DELETE/INSERT or MERGE
-
C
Adding a UNIQUE constraint to the target table
-
D
Running VACUUM before each load