Just added: Embedded C From Zero
PostgreSQL
-- A1 already exists with qty 10. Add 3 more to it in one statement -
-- insert if missing, update (adding to the existing qty) if present.
INSERT INTO inventory (sku, qty) VALUES ('A1', 3);