Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
SQL / CHAPTER 04
SQL
Schema design.
Learn SQL with real tables and PostgreSQL in your browser. Learn and Practice per topic, separate challenges.
Choose a section
Lesson with explanation and a guided task. Theory stays readable; completion requires a passing solution.
Challenges are optional and do not block the next chapter.
9 lessons available
The foundations behind your ideas.
- 01Open lesson
CREATE TABLE and types · Locked
CREATE TABLE and types
- 02Open lesson
PRIMARY KEY and identity · Locked
PRIMARY KEY and identity
- 03Open lesson
NOT NULL, DEFAULT, UNIQUE, CHECK · Locked
NOT NULL, DEFAULT, UNIQUE, CHECK
- 04Open lesson
FOREIGN KEY 1:N · Locked
FOREIGN KEY 1:N
- 05Open lesson
Junction table M:N · Locked
Junction table M:N
- 06Open lesson
Normalization · Locked
Normalization
- 07Open lesson
ALTER TABLE · Locked
ALTER TABLE
- 08Open lesson
Integrity and invalid data · Locked
Integrity and invalid data
- 09Open lesson
Mini library schema · Locked
Mini library schema