← All Learning Paths

SQL & Databases

A SQL path covering SELECT/WHERE, ordering, grouping, joins, subqueries, indexes, transactions, JSON queries, migrations, and Prisma.

technicalbeginner13 nodes13h total

A thorough SQL and databases learning path covering queries, joins, indexing, transactions, normalization, NoSQL, and performance tuning for effective data management and analysis.

  1. Adapt "Basic SELECT with Column Aliases" to a second input and compare the new output with the behavior described in "Demonstrates a basic SELECT query with column aliases, literal expressions, and calculated".

    Completion criteria: Change one constant in "Basic SELECT with Column Aliases", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Advanced WHERE Clause Filtering

    ⏱ 0.75h

  2. Execute "Advanced WHERE Clause Filtering", change one constant, and describe how the output diverges from "Demonstrates complex WHERE clause filtering with multiple operators including BETWEEN, IN,".

    Prerequisites: Basic SELECT with Column Aliases

    Completion criteria: Paste the command, the exit code, and the output line matching "Demonstrates complex WHERE clause filtering with multiple operators including BETWEEN, IN,"; then show a second run with a changed parameter.

    Next step: Multi-Column Ordering with NULLS

    ⏱ 0.75h

  3. Run the sql snippet "Multi-Column Ordering with NULLS", capture stdout, and show which line demonstrates the documented behavior: "Demonstrates ORDER BY with multiple columns, mixed sort directions, NULLS handling, and".

    Prerequisites: Advanced WHERE Clause Filtering

    Completion criteria: Save two runs of "Multi-Column Ordering with NULLS" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: GROUP BY with Aggregate Functions

    ⏱ 0.75h

  4. Adapt "GROUP BY with Aggregate Functions" to a second input and compare the new output with the behavior described in "Uses GROUP BY with multiple aggregate functions to summarize sales data by category,".

    Prerequisites: Multi-Column Ordering with NULLS

    Completion criteria: Attach the terminal transcript for "GROUP BY with Aggregate Functions": command, exit code, and the printed result you used to confirm "Uses GROUP BY with multiple aggregate functions to summarize sales data by category,".

    Next step: INNER JOIN with Multiple Tables

    ⏱ 0.75h

  5. Execute "INNER JOIN with Multiple Tables", change one constant, and describe how the output diverges from "Performs INNER JOINs across three tables to combine related data from customers, orders, and".

    Prerequisites: GROUP BY with Aggregate Functions

    Completion criteria: Paste the command, the exit code, and the output line matching "Performs INNER JOINs across three tables to combine related data from customers, orders, and"; then show a second run with a changed parameter.

    Next step: Subqueries in WHERE and SELECT

    ⏱ 0.75h

  6. Run the sql snippet "Subqueries in WHERE and SELECT", capture stdout, and show which line demonstrates the documented behavior: "Demonstrates correlated and non-correlated subqueries in WHERE clauses and SELECT columns to".

    Prerequisites: INNER JOIN with Multiple Tables

    Completion criteria: Paste the command, the exit code, and the output line matching "Demonstrates correlated and non-correlated subqueries in WHERE clauses and SELECT columns to"; then show a second run with a changed parameter.

    Next step: Index Creation StQuerygies

    ⏱ 0.75h

  7. Adapt "Index Creation StQuerygies" to a second input and compare the new output with the behavior described in "Creates various index types including B-tree, partial, expression, and composite indexes to".

    Prerequisites: Subqueries in WHERE and SELECT

    Completion criteria: Attach the terminal transcript for "Index Creation StQuerygies": command, exit code, and the printed result you used to confirm "Creates various index types including B-tree, partial, expression, and composite indexes to".

    Next step: Transaction with Isolation Levels

    ⏱ 0.75h

  8. Execute "Transaction with Isolation Levels", change one constant, and describe how the output diverges from "Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints,".

    Prerequisites: Index Creation StQuerygies

    Completion criteria: Attach the terminal transcript for "Transaction with Isolation Levels": command, exit code, and the printed result you used to confirm "Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints,".

    Next step: JSON Data Query and Manipulation

    ⏱ 0.75h

  9. Run the sql snippet "JSON Data Query and Manipulation", capture stdout, and show which line demonstrates the documented behavior: "Queries and manipulates JSON/JSONB data using operators for extraction, filtering, and".

    Prerequisites: Transaction with Isolation Levels

    Completion criteria: Change one constant in "JSON Data Query and Manipulation", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Database Migration Strategies That Won't Break Production

    ⏱ 0.75h

  10. Compare "Zero-Downtime Index Creation and Data-Only Migrations" with "Run schema changes safely with expand-contract migrations, backward-compatible code, and" in "Database Migration Strategies That Won't Break Production" and state which trade-off you would accept in sql code.

    Prerequisites: JSON Data Query and Manipulation

    Completion criteria: Attach a one-page summary that quotes "Zero-Downtime Index Creation and Data-Only Migrations", lists two trade-offs, and links the commit where you applied it.

    Next step: Prisma

    ⏱ 1h

  11. Stand up "Prisma" for a sql task, confirm "findMany prisma.model.findMany(opts?): Promise<T[]>" holds, and document one failure you triggered.

    Prerequisites: Database Migration Strategies That Won't Break Production

    Completion criteria: Attach one successful call and one invalid call against "Prisma", citing "findMany prisma.model.findMany(opts?): Promise<T[]>" as the documented surface.

    Next step: SQL SELECT with WHERE

    ⏱ 1h

  12. Solve "SQL SELECT with WHERE": turn All columns for employees with salary > 50000, ordered by salary descending. into 3 rows with highest salary first and pass the provided samples.

    Prerequisites: Prisma

    Completion criteria: Show a test command that validates "All columns for employees with salary > 50000, ordered by salary descending." and "3 rows with highest salary first" and passes after your fix.

    Next step: Capstone: SQL & Databases

    ⏱ 0.25h

  13. Build "Build a Database Migration Runner" through its phases, keeping "Transactional apply" independently testable.

    Prerequisites: SQL SELECT with WHERE

    Completion criteria: Deliver "Transactional apply" and paste the test output where the acceptance test passes; include the test name and command.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h