Merge stage data into master table

SQL Hard 2 views
Back to Questions

Problem Description

You have ProductsStage(product_id, name, price). Update existing Products and insert new ones in one MERGE statement.

Input Format

SQL DML

Output Format

DML statement(s)

Sample Test Case

Input:
Products, ProductsStage
Output:
Products synced

Constraints

Use MERGE pattern

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev