iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

SQL Bootcamp

A 30-day plan to take you from "SELECT * is scary" to "I can design and query a small production schema".

Week 1 — Read

DayLessons
1Intro, syntax, SELECT
2WHERE, comparison operators, NULL
3ORDER BY, LIKE, IN, BETWEEN
4AND / OR / NOT, parens for precedence
5DISTINCT, TOP / LIMIT
6–7Practice on a sample DB — re-write 10 queries from memory

Week 2 — Aggregate & Join

DayLessons
8–9COUNT, SUM, AVG, MIN/MAX
10GROUP BY, HAVING
11INNER JOIN
12LEFT JOIN, anti-joins
13RIGHT JOIN, FULL JOIN, self-join
14UNION, CASE, COALESCE

Week 3 — Design

DayLessons
15–16CREATE TABLE, types, primary keys
17Foreign keys, constraints
18NOT NULL, UNIQUE, CHECK, DEFAULT
19ALTER TABLE, ADD/DROP columns
20Indexes — what to add, what not
21Views, sub-queries

Week 4 — Beyond the basics

DayTopic
22Window functions (ROW_NUMBER, RANK, SUM(…) OVER)
23CTEs (WITH …) and recursive CTEs
24Transactions, isolation levels
25SQL injection & parameterised queries
26Reading EXPLAIN plans
27Backups & restore
28–30Capstone — model an e-commerce schema, load fake data, build 10 reports
Tip: Don't skip the capstone. Doing this end-to-end against a real engine teaches you ten times what reading alone does.

Example

Example
-- 30-day SQL bootcamp:
-- Week 1: SELECT, WHERE, ORDER BY
-- Week 2: aggregation, joins
-- Week 3: design, constraints, indexes
-- Week 4: capstone project
Try it Yourself »

Exercise

The bootcamp lasts…

days

Test yourself

Q1. The bootcamp runs over…
Q2. Week 3 focuses on…
Q3. Final week ends with…

Discussion

Loading…