Explanation
Relational tables, primary keys, joins, and indexes are the backbone of most production backends.
Code example
sqlCREATE TABLE users (
id UUID PRIMARY KEY,
email TEXT UNIQUE NOT NULL,
created_at TIMESTAMPTZ DEFAULT now()
);
SELECT u.email, count(s.id) AS skills
FROM users u
LEFT JOIN skills s ON s.user_id = u.id
GROUP BY u.email;Helpful resources
Exercise
Model users and skills with a foreign key, insert rows, and write a JOIN that lists skills per user.
