MERGE
MERGE compares a source to a target and runs a different action per case: WHEN MATCHED, WHEN NOT MATCHED.
task
Sync price_stage into products on sku: delete the rows marked op = 'x', update the price of other matches, insert new skus.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
MERGE compares a source to a target and runs a different action per case: WHEN MATCHED, WHEN NOT MATCHED.
Sync price_stage into products on sku: delete the rows marked op = 'x', update the price of other matches, insert new skus.