- Home
- Courses
- SQL for Writing Data: DDL, DML, Transactions & Upserts
- Write-Side SQL for Engineers
Micro Free Course — 100% Free Learning
All lessons in this module are free to learn. Sign in with Google to save your progress.
Write-Side SQL for Engineers
DDL, INSERT, safe UPDATE/DELETE, schema evolution, transactions, and MERGE upserts — with a graded load lab.
Module Content
CREATE TABLE: Types, Keys & Constraints
Define pipeline tables with sane types and executing constraints.
INSERT: Single Rows, Bulk & INSERT..SELECT
The three insert shapes; named columns; idempotent reloads.
UPDATE & DELETE: The WHERE Discipline
SELECT-first ritual, soft deletes, batching large changes.
Lab: Build & Load stg_orders
CREATE, load 2k rows, correct, and prove replay-safety.
ALTER, DROP, TRUNCATE: Evolving Schemas
Additive-first evolution, re-runnable migrations, staging reloads.
Transactions: Atomic Loads
All-or-nothing restatements; short transactions; engine differences.
MERGE & Upserts: Handling Replays
Merge keys, ON CONFLICT vs MERGE, SCD-1 limits, replay test.
Quiz: Write-Side SQL
8 scenario questions on DDL safety, write discipline, atomicity, and replays.