← All Learning Paths

Database Administrator

A DBA path covering indexes, window functions, recursive CTEs, transactions, upserts, stored procedures, JSON, migrations, and ORMs.

roleintermediate13 nodes13.5h total

A specialized learning path for DBAs covering SQL mastery, database design, performance tuning, replication, backup strategies, security, and cloud database management for data reliability.

  1. Run the database snippet "Index Creation StQuerygies", capture stdout, and show which line demonstrates the documented behavior: "Creates various index types including B-tree, partial, expression, and composite indexes to".

    Completion criteria: Save two runs of "Index Creation StQuerygies" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Window Functions for Analytics

    ⏱ 0.75h

  2. Adapt "Window Functions for Analytics" to a second input and compare the new output with the behavior described in "Uses window functions like ROW_NUMBER, RANK, LAG, LEAD, and running totals to perform".

    Prerequisites: Index Creation StQuerygies

    Completion criteria: Attach the terminal transcript for "Window Functions for Analytics": command, exit code, and the printed result you used to confirm "Uses window functions like ROW_NUMBER, RANK, LAG, LEAD, and running totals to perform".

    Next step: Recursive CTE for Hierarchies

    ⏱ 0.75h

  3. Execute "Recursive CTE for Hierarchies", change one constant, and describe how the output diverges from "Uses a recursive Common Table Expression to traverse hierarchical data structures like org".

    Prerequisites: Window Functions for Analytics

    Completion criteria: Change one constant in "Recursive CTE for Hierarchies", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Transaction with Isolation Levels

    ⏱ 0.75h

  4. Run the database snippet "Transaction with Isolation Levels", capture stdout, and show which line demonstrates the documented behavior: "Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints,".

    Prerequisites: Recursive CTE for Hierarchies

    Completion criteria: Paste the command, the exit code, and the output line matching "Demonstrates explicit transaction control with SET TRANSACTION isolation levels, savepoints,"; then show a second run with a changed parameter.

    Next step: MERGE for Conditional Upsert

    ⏱ 0.75h

  5. Adapt "MERGE for Conditional Upsert" to a second input and compare the new output with the behavior described in "Uses the MERGE statement to perform conditional INSERT, UPDATE, or DELETE operations based".

    Prerequisites: Transaction with Isolation Levels

    Completion criteria: Save two runs of "MERGE for Conditional Upsert" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Stored Procedure with Transaction Logic

    ⏱ 0.75h

  6. Execute "Stored Procedure with Transaction Logic", change one constant, and describe how the output diverges from "Creates a stored procedure with parameter validation, error handling, dynamic SQL, and".

    Prerequisites: MERGE for Conditional Upsert

    Completion criteria: Attach the terminal transcript for "Stored Procedure with Transaction Logic": command, exit code, and the printed result you used to confirm "Creates a stored procedure with parameter validation, error handling, dynamic SQL, and".

    Next step: CTE for Readable Complex Queries

    ⏱ 0.75h

  7. Run the database snippet "CTE for Readable Complex Queries", capture stdout, and show which line demonstrates the documented behavior: "Uses Common Table Expressions (CTEs) to break complex queries into named, readable steps for".

    Prerequisites: Stored Procedure with Transaction Logic

    Completion criteria: Change one constant in "CTE for Readable Complex Queries", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: JSON Data Query and Manipulation

    ⏱ 0.75h

  8. Adapt "JSON Data Query and Manipulation" to a second input and compare the new output with the behavior described in "Queries and manipulates JSON/JSONB data using operators for extraction, filtering, and".

    Prerequisites: CTE for Readable Complex Queries

    Completion criteria: Paste the command, the exit code, and the output line matching "Queries and manipulates JSON/JSONB data using operators for extraction, filtering, and"; then show a second run with a changed parameter.

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

    ⏱ 0.75h

  9. Reconstruct the reasoning behind "Database Migration Strategies That Won't Break Production" by tracing "Locks, Batched Backfills, and Large Tables" to the failure it prevents in database systems.

    Prerequisites: JSON Data Query and Manipulation

    Completion criteria: Attach a one-page summary that quotes "Locks, Batched Backfills, and Large Tables", lists two trade-offs, and links the commit where you applied it.

    Next step: Drizzle ORM

    ⏱ 1h

  10. Wire "Drizzle ORM" into a scratch database project, following "Schema Definition pgTable(name: string, columns: Record<string, PgColumn>)", and record one working request/response pair.

    Prerequisites: Database Migration Strategies That Won't Break Production

    Completion criteria: Run a request against "Drizzle ORM", paste the response, and add one deliberately invalid call with its error.

    Next step: Prisma

    ⏱ 1h

  11. Read "Prisma"'s documented surface around "Prisma Client prisma.model.findMany/findUnique/create/update/delete(args)", then build a minimal endpoint and log the response.

    Prerequisites: Drizzle ORM

    Completion criteria: Attach one successful call and one invalid call against "Prisma", citing "Prisma Client prisma.model.findMany/findUnique/create/update/delete(args)" as the documented surface.

    Next step: SQL Window Functions

    ⏱ 1h

  12. Complete "SQL Window Functions" by making All employees with their salary rank within their department. produce ranks 4, 2, 2, 1 (ties get same rank) without hard-coding the sample.

    Prerequisites: Prisma

    Completion criteria: Attach the solution file, two passing sample runs, and one failing run whose error matches the contract for "ranks 4, 2, 2, 1 (ties get same rank)".

    Next step: Capstone: Database Administrator

    ⏱ 0.5h

  13. Ship "Ledger table" from "Build a Database Migration Runner", then prove it with the project's test suite and an acceptance note.

    Prerequisites: SQL Window Functions

    Completion criteria: Run the project's test command for "Build a Database Migration Runner", paste the passing output, and attach the acceptance note for "Ledger table" with the test name.

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

    ⏱ 4h