The Analyst / SQLAll lessons ↗
Day 29 · SQL mastery path

Transactions

Transactions let you apply changes and commit or roll them back.

01 · Learn

Study the pattern

Transactions let you apply changes and commit or roll them back. Predict the output before running the example.

BEGIN; UPDATE orders SET amount=amount+100 WHERE order_id=101; SELECT order_id,amount FROM orders WHERE order_id=101; ROLLBACK;
02 · Recall

Explain it from memory

What does today's SQL feature do, and when would you use it?

03 · Practice

Run SQL in your browser

Run the example, then modify one clause and predict how the result changes.

Loading SQL engine…
04 · Repeat

Consolidate the skill