Data modification & MERGE
Exercise · SQL & Querying

Predict, then run it

Predict the output

A balance MERGE source has two rows for one coupon. The safe pre-step aggregates the source:

SELECT coupon, SUM(delta) AS delta FROM entries GROUP BY coupon;

entries = (1,5),(1,7). Predict the exact output.