Foundations Overview

Learn to think in tables, rows, and relationships. From your first SQL query to designing normalized databases β€” every concept taught hands-on with real engines.

Technologies: MySQL 8.0, PostgreSQL 15


πŸš€ Start Here β†’ Lab 01: Intro to Relational Databases


πŸ“‹ Lab Index

#
Lab
DB
Topics

01

MySQL 8

Relational model, tables, rows, SQL intro, Docker setup

02

MySQL 8

CREATE DATABASE, CREATE TABLE, data types, constraints

03

MySQL 8

INSERT, SELECT, basic WHERE, LIMIT

04

MySQL 8

WHERE, AND/OR, IN, BETWEEN, ORDER BY, LIMIT/OFFSET

05

MySQL 8

COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING

06

MySQL 8

INNER JOIN, table aliases, multi-table queries

07

MySQL 8

LEFT/RIGHT/FULL OUTER JOIN, NULL handling in joins

08

MySQL 8

Scalar subqueries, IN, EXISTS, correlated subqueries

09

MySQL 8

CREATE VIEW, updatable views, security benefits

10

MySQL 8

ERD, 1NF/2NF/3NF, functional dependencies

11

MySQL 8

PK, FK, UNIQUE, CHECK, NOT NULL, CASCADE

12

MySQL 8

CREATE INDEX, EXPLAIN, B-tree, composite indexes

13

MySQL 8

UPDATE, DELETE, TRUNCATE, safe update patterns

14

MySQL 8

BEGIN/COMMIT/ROLLBACK, ACID properties, savepoints

15

MySQL 8

CONCAT, SUBSTRING, UPPER/LOWER, REPLACE, LIKE, REGEXP

16

MySQL 8

NOW(), DATE_FORMAT, DATEDIFF, DATE_ADD, EXTRACT

17

MySQL 8

IS NULL, COALESCE, NULLIF, IFNULL, NULL in aggregations

18

PostgreSQL 15

JSONB operators, arrays, GIN indexes

19

MySQL 8

AUTO_INCREMENT, ENUM, SET, JSON functions, CTEs

20

MySQL 8

Full e-commerce schema: products, orders, users, inventory


πŸ—‚οΈ Learning Path

Week 1: SQL Basics (Labs 1–7)

Start here if you've never written SQL. You'll go from installing MySQL to writing multi-table JOIN queries.

Week 2: Intermediate SQL (Labs 8–14)

Subqueries, views, database design, normalization, and transactions β€” the skills that separate junior from mid-level.

Week 3: Advanced SQL + Design (Labs 15–20)

Functions, NULL handling, PostgreSQL, and the capstone e-commerce project.


πŸ› οΈ Setup

Last updated