Module 4 of 16

SQL DDL: Build the Structure

Before a database can hold data, it needs structure. You will CREATE a schema and tables, ALTER them when needs change, and DROP what you no longer want, all on a real PostgreSQL database that runs in your browser.

Lesson recording

Your progress

Opening a slide marks it as viewed. Progress is saved in this browser.

Completed0%
Slides opened
0
Total slides
0
Est. time
—

What you will learn

Choose a topic to jump to its slide.

Slide Player

SQL DDL, Step by Step

Read the "In plain English" box first, then look at the code. Every slide runs on a real PostgreSQL database in your browser, and the last panel shows what your code changed. Edit anything and press Run: each Run starts from a clean database, so you cannot break anything. Keys: ← → change slide, Space play/pause, R run again.

SQL DDL postgresql-ddl