# sudhanwa755/sql-handbook architecture

> Architecture diagram of the GitHub repository sudhanwa755/sql-handbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sudhanwa755/sql-handbook
- Repository: https://github.com/sudhanwa755/sql-handbook

## Overview

The SQL Handbook is a static, browser-based textbook and assessment platform. Learners enter through the handbook index, navigate eight progressively organized chapters, and complete chapter-end quizzes that provide scores and answer explanations. The graph preserves the documented curriculum, assessment engine, and spatial interface capabilities. Source excerpts show quiz bootstrapping and navigation links; chapter-to-quiz relationships and site-wide presentation details are based on the README rather than inspected HTML or CSS.

Main entry points: [`nav.js`](https://github.com/sudhanwa755/sql-handbook/blob/main/nav.js) (Navigation & UI), [`quiz.js`](https://github.com/sudhanwa755/sql-handbook/blob/main/quiz.js) (Quiz Engine), [`part1-normalization.html`](https://github.com/sudhanwa755/sql-handbook/blob/main/part1-normalization.html) (Normalization), [`part2-keys-constraints.html`](https://github.com/sudhanwa755/sql-handbook/blob/main/part2-keys-constraints.html) (Keys & Constraints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["SQL Curriculum"]
  node_index["Handbook Index<br/>[index.html]"]
  node_normalization["Normalization"]
  node_keys["Keys &amp; Constraints"]
  node_commands["DDL, DML &amp; TCL"]
  node_select["SELECT &amp; WHERE"]
  node_functions["Functions &amp; NULL"]
  node_grouping["GROUP BY &amp; HAVING"]
  node_joins["Joins<br/>[part7-joins.html]"]
  node_subqueries["Subqueries &amp; Sets"]
end

subgraph group_assessment["Assessment"]
  node_quiz["Quiz Engine<br/>[quiz.js]"]
  node_quizbank["Chapter Quiz Bank<br/>[quiz-data.js]"]
end

subgraph group_interface["Reader Interface"]
  node_navigation["Navigation &amp; UI<br/>[nav.js]"]
  node_visuals["Spatial Design<br/>[styles.css]"]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_index
node_navigation -->|"links to"| node_index
node_navigation -->|"links to"| node_normalization
node_navigation -->|"links to"| node_keys
node_navigation -->|"links to"| node_commands
node_navigation -->|"links to"| node_select
node_navigation -->|"links to"| node_functions
node_navigation -->|"links to"| node_grouping
node_navigation -->|"links to"| node_joins
node_navigation -->|"links to"| node_subqueries
node_quiz -->|"reads questions"| node_quizbank
node_normalization -->|"offers assessment"| node_quiz
node_keys -->|"offers assessment"| node_quiz
node_commands -->|"offers assessment"| node_quiz
node_select -->|"offers assessment"| node_quiz
node_functions -->|"offers assessment"| node_quiz
node_grouping -->|"offers assessment"| node_quiz
node_joins -->|"offers assessment"| node_quiz
node_subqueries -->|"offers assessment"| node_quiz
node_learner -->|"studies"| node_normalization
node_learner -->|"submits answers"| node_quiz

click node_index "https://github.com/sudhanwa755/sql-handbook/blob/main/index.html"
click node_normalization "https://github.com/sudhanwa755/sql-handbook/blob/main/part1-normalization.html"
click node_keys "https://github.com/sudhanwa755/sql-handbook/blob/main/part2-keys-constraints.html"
click node_commands "https://github.com/sudhanwa755/sql-handbook/blob/main/part3-ddl-dml-tcl.html"
click node_select "https://github.com/sudhanwa755/sql-handbook/blob/main/part4-select-where.html"
click node_functions "https://github.com/sudhanwa755/sql-handbook/blob/main/part5-functions.html"
click node_grouping "https://github.com/sudhanwa755/sql-handbook/blob/main/part6-groupby-having.html"
click node_joins "https://github.com/sudhanwa755/sql-handbook/blob/main/part7-joins.html"
click node_subqueries "https://github.com/sudhanwa755/sql-handbook/blob/main/part8-subqueries-sets.html"
click node_navigation "https://github.com/sudhanwa755/sql-handbook/blob/main/nav.js"
click node_visuals "https://github.com/sudhanwa755/sql-handbook/blob/main/styles.css"
click node_quiz "https://github.com/sudhanwa755/sql-handbook/blob/main/quiz.js"
click node_quizbank "https://github.com/sudhanwa755/sql-handbook/blob/main/quiz-data.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_index,node_normalization,node_keys,node_commands,node_select,node_functions,node_grouping,node_joins,node_subqueries toneBlue
class node_quiz,node_quizbank toneAmber
class node_navigation,node_visuals toneMint
class node_learner toneIndigo
```

## Components

### SQL Curriculum

- [Handbook Index](https://github.com/sudhanwa755/sql-handbook/blob/main/index.html): `index.html`
- [Normalization](https://github.com/sudhanwa755/sql-handbook/blob/main/part1-normalization.html): `part1-normalization.html`
- [Keys & Constraints](https://github.com/sudhanwa755/sql-handbook/blob/main/part2-keys-constraints.html): `part2-keys-constraints.html`
- [DDL, DML & TCL](https://github.com/sudhanwa755/sql-handbook/blob/main/part3-ddl-dml-tcl.html): `part3-ddl-dml-tcl.html`
- [SELECT & WHERE](https://github.com/sudhanwa755/sql-handbook/blob/main/part4-select-where.html): `part4-select-where.html`
- [Functions & NULL](https://github.com/sudhanwa755/sql-handbook/blob/main/part5-functions.html): `part5-functions.html`
- [GROUP BY & HAVING](https://github.com/sudhanwa755/sql-handbook/blob/main/part6-groupby-having.html): `part6-groupby-having.html`
- [Joins](https://github.com/sudhanwa755/sql-handbook/blob/main/part7-joins.html): `part7-joins.html`
- [Subqueries & Sets](https://github.com/sudhanwa755/sql-handbook/blob/main/part8-subqueries-sets.html): `part8-subqueries-sets.html`

### Assessment

- [Quiz Engine](https://github.com/sudhanwa755/sql-handbook/blob/main/quiz.js): `quiz.js`
- [Chapter Quiz Bank](https://github.com/sudhanwa755/sql-handbook/blob/main/quiz-data.js): `quiz-data.js`

### Reader Interface

- [Navigation & UI](https://github.com/sudhanwa755/sql-handbook/blob/main/nav.js): `nav.js`
- [Spatial Design](https://github.com/sudhanwa755/sql-handbook/blob/main/styles.css): `styles.css`

### Other components

- **Learner**

## Connections

- Learner → Handbook Index: opens (evidence: `README.md`)
- Navigation & UI → Handbook Index: links to (evidence: `nav.js`)
- Navigation & UI → Normalization: links to (evidence: `nav.js`)
- Navigation & UI → Keys & Constraints: links to (evidence: `nav.js`)
- Navigation & UI → DDL, DML & TCL: links to (evidence: `nav.js`)
- Navigation & UI → SELECT & WHERE: links to (evidence: `nav.js`)
- Navigation & UI → Functions & NULL: links to (evidence: `nav.js`)
- Navigation & UI → GROUP BY & HAVING: links to (evidence: `nav.js`)
- Navigation & UI → Joins: links to (evidence: `nav.js`)
- Navigation & UI → Subqueries & Sets: links to (evidence: `nav.js`)
- Quiz Engine → Chapter Quiz Bank: reads questions (evidence: `quiz.js`)
- Normalization → Quiz Engine: offers assessment (evidence: `README.md`)
- Keys & Constraints → Quiz Engine: offers assessment (evidence: `README.md`)
- DDL, DML & TCL → Quiz Engine: offers assessment (evidence: `README.md`)
- SELECT & WHERE → Quiz Engine: offers assessment (evidence: `README.md`)
- Functions & NULL → Quiz Engine: offers assessment (evidence: `README.md`)
- GROUP BY & HAVING → Quiz Engine: offers assessment (evidence: `README.md`)
- Joins → Quiz Engine: offers assessment (evidence: `README.md`)
- Subqueries & Sets → Quiz Engine: offers assessment (evidence: `README.md`)
- Learner → Normalization: studies (evidence: `README.md`)
- Learner → Quiz Engine: submits answers (evidence: `quiz.js`)
