# prince-ohio/ktu-s4-pccsl408-dbms-lab-notes architecture

> Architecture diagram of the GitHub repository prince-ohio/ktu-s4-pccsl408-dbms-lab-notes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes
- Repository: https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes

## Overview

#### Purpose and Entry Point
This is a static, chapter-ordered Markdown curriculum for learning DBMS concepts and SQL, from relational modeling through advanced query construction. `README.md` is the navigation and usage entry point; readers consume chapters directly in repository order. There is no executable application, build pipeline, database instance, or runtime service.

#### 1. DBMS and Relational Foundations
The opening material establishes why DBMSs exist and how relational databases organize data into tables and relations. It provides the conceptual base required before writing SQL.
- `A) Introduction.md`
- `B) Introduction to RDBMS.md`
- `C) Data Types in RDBMS.md`

#### 2. Schema Identity and Data Modeling
This stage defines how data entities are represented and connected. Keys establish uniqueness and referential relationships; ER diagrams model entities, attributes, and relationships before implementation.
- `D) Keys in RDBMS.md`
- `E) ER Diagram.md`

**Boundary:** conceptual data design precedes SQL schema creation.

#### 3. SQL Language Onboarding
Readers transition from DBMS theory to SQL syntax, command categories, and database interaction. This is the primary control-flow handoff from modeling concepts to executable query knowledge.
- `F) Introduction to SQL.md`
- `G) DDL Commands.md`

#### 4. Schema Definition and Integrity
DDL creates, changes, and removes database structures, while constraints encode validity rules such as required, unique, defaulted, and checked values. Together, these chapters connect logical design to enforceable relational schemas.
- `G) DDL Commands.md`
- `H) Constraints in SQL.md`
- `D) Keys in RDBMS.md`

**Boundary:** these notes describe SQL concepts and examples, but do not provision or connect to a specific RDBMS.

#### 5. Data Mutation and Filtering
The repository then covers writing and changing rows, followed by predicate logic for selecting targeted records. Update/delete content is separated for focused treatment of potentially destructive operations.
- `I) DML Commands.md`
- `J) Comparison Operators.md`
- `K) UPDATE and DELETE.md`

#### 6. Query Transformation and Aggregation
This stage teaches deriving values, organizing result sets, filtering aggregate groups, and introducing conditional result logic. The flow is from row-level expressions to grouped analytical queries.
- `L) Functions in SQL.md`
- `M) ORDER BY, GROUP BY, HAVING.md`
- `N) CASE Statement in SQL.md`

#### 7. Multi-Table and Nested Querying
The final advanced-query layer combines relational datasets through joins and expresses dependent or nested retrieval logic with subqueries. These chapters rely on earlier modeling, keys, predicates, and aggregation concepts.
- `O) JOINS.md`
- `P) Subqueries in SQL.md`
- `D) Keys in RDBMS.md`

#### Runtime, Infrastructure, and External Services
The material is portable Markdown intended for direct reading, revision, or optional conversion to PDF. No language runtime, package manager, database server, cloud infrastructure, API, or external service is represented in the repository tree.

Main entry points: [`D) Keys in RDBMS.md`](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/D)%20Keys%20in%20RDBMS.md) (Keys), [`M) ORDER BY, GROUP BY, HAVING.md`](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/M)%20ORDER%20BY%2C%20GROUP%20BY%2C%20HAVING.md) (ORDER BY, GROUP BY, HAVING), [`G) DDL Commands.md`](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/G)%20DDL%20Commands.md) (DDL commands), [`O) JOINS.md`](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/O)%20JOINS.md) (JOINS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Foundations"]
  node_intro["DBMS introduction<br/>curriculum chapter<br/>[A&#41; Introduction.md]"]
  node_rdbms["Relational databases<br/>curriculum chapter"]
  node_data_types["RDBMS data types<br/>curriculum chapter"]
end

subgraph group_modeling["Data Modeling"]
  node_keys["Keys<br/>curriculum chapter"]
  node_er_diagram["ER diagrams<br/>curriculum chapter<br/>[E&#41; ER Diagram.md]"]
end

subgraph group_sql_core["SQL Core"]
  node_sql_intro["SQL introduction<br/>curriculum chapter"]
  node_ddl["DDL commands<br/>curriculum chapter<br/>[G&#41; DDL Commands.md]"]
  node_constraints["SQL constraints<br/>curriculum chapter"]
  node_dml["DML commands<br/>curriculum chapter<br/>[I&#41; DML Commands.md]"]
  node_comparison["Comparison operators<br/>curriculum chapter"]
  node_update_delete["UPDATE and DELETE<br/>curriculum chapter"]
end

subgraph group_querying["Advanced Querying"]
  node_functions["SQL functions<br/>curriculum chapter"]
  node_grouping["ORDER BY, GROUP BY, HAVING<br/>curriculum chapter"]
  node_case["CASE statements<br/>curriculum chapter"]
  node_joins["JOINS<br/>curriculum chapter<br/>[O&#41; JOINS.md]"]
  node_subqueries["Subqueries<br/>curriculum chapter"]
end

node_readme["README navigation<br/>entry point<br/>[README.md]"]

node_readme -->|"starts curriculum"| node_intro
node_intro -->|"introduces"| node_rdbms
node_rdbms -->|"defines"| node_data_types
node_data_types -->|"prepares"| node_keys
node_keys -->|"informs"| node_er_diagram
node_er_diagram -->|"design before SQL"| node_sql_intro
node_sql_intro -->|"introduces"| node_ddl
node_keys -.->|"guides schema identity"| node_ddl
node_ddl -->|"enforces schema rules"| node_constraints
node_constraints -->|"governs row changes"| node_dml
node_dml -->|"filters rows"| node_comparison
node_comparison -->|"targets mutations"| node_update_delete
node_update_delete -->|"progresses to queries"| node_functions
node_functions -->|"derives then aggregates"| node_grouping
node_grouping -->|"adds conditional logic"| node_case
node_case -->|"advances to multi-table queries"| node_joins
node_keys -.->|"relationship basis"| node_joins
node_joins -->|"advances to nested queries"| node_subqueries
node_grouping -.->|"supports nested analysis"| node_subqueries

click node_readme "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/README.md"
click node_intro "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/A)%20Introduction.md"
click node_rdbms "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/B)%20Introduction%20to%20RDBMS.md"
click node_data_types "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/C)%20Data%20Types%20in%20RDBMS.md"
click node_keys "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/D)%20Keys%20in%20RDBMS.md"
click node_er_diagram "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/E)%20ER%20Diagram.md"
click node_sql_intro "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/F)%20Introduction%20to%20SQL.md"
click node_ddl "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/G)%20DDL%20Commands.md"
click node_constraints "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/H)%20Constraints%20in%20SQL.md"
click node_dml "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/I)%20DML%20Commands.md"
click node_comparison "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/J)%20Comparison%20Operators.md"
click node_update_delete "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/K)%20UPDATE%20and%20DELETE.md"
click node_functions "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/L)%20Functions%20in%20SQL.md"
click node_grouping "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/M)%20ORDER%20BY%2C%20GROUP%20BY%2C%20HAVING.md"
click node_case "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/N)%20CASE%20Statement%20in%20SQL.md"
click node_joins "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/O)%20JOINS.md"
click node_subqueries "https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/P)%20Subqueries%20in%20SQL.md"

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_intro,node_rdbms,node_data_types toneBlue
class node_keys,node_er_diagram toneAmber
class node_sql_intro,node_ddl,node_constraints,node_dml,node_comparison,node_update_delete toneMint
class node_functions,node_grouping,node_case,node_joins,node_subqueries toneRose
class node_readme toneNeutral
```

## Components

### Foundations

Relational concepts before SQL.

- [DBMS introduction](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/A)%20Introduction.md): curriculum chapter · `A) Introduction.md`
- [Relational databases](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/B)%20Introduction%20to%20RDBMS.md): curriculum chapter · `B) Introduction to RDBMS.md`
- [RDBMS data types](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/C)%20Data%20Types%20in%20RDBMS.md): curriculum chapter · `C) Data Types in RDBMS.md`

### Data Modeling

Design concepts that precede schema creation.

- [Keys](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/D)%20Keys%20in%20RDBMS.md): curriculum chapter · Defines identity and referential relationships. · `D) Keys in RDBMS.md`
- [ER diagrams](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/E)%20ER%20Diagram.md): curriculum chapter · `E) ER Diagram.md`

### SQL Core

SQL definition, mutation, and filtering.

- [SQL introduction](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/F)%20Introduction%20to%20SQL.md): curriculum chapter · Handoff from modeling to SQL knowledge. · `F) Introduction to SQL.md`
- [DDL commands](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/G)%20DDL%20Commands.md): curriculum chapter · Creates and changes relational structures. · `G) DDL Commands.md`
- [SQL constraints](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/H)%20Constraints%20in%20SQL.md): curriculum chapter · Encodes schema validity rules. · `H) Constraints in SQL.md`
- [DML commands](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/I)%20DML%20Commands.md): curriculum chapter · `I) DML Commands.md`
- [Comparison operators](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/J)%20Comparison%20Operators.md): curriculum chapter · `J) Comparison Operators.md`
- [UPDATE and DELETE](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/K)%20UPDATE%20and%20DELETE.md): curriculum chapter · Focused destructive data changes. · `K) UPDATE and DELETE.md`

### Advanced Querying

Transformation, aggregation, and multi-table retrieval.

- [SQL functions](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/L)%20Functions%20in%20SQL.md): curriculum chapter · `L) Functions in SQL.md`
- [ORDER BY, GROUP BY, HAVING](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/M)%20ORDER%20BY%2C%20GROUP%20BY%2C%20HAVING.md): curriculum chapter · Organizes and filters grouped results. · `M) ORDER BY, GROUP BY, HAVING.md`
- [CASE statements](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/N)%20CASE%20Statement%20in%20SQL.md): curriculum chapter · `N) CASE Statement in SQL.md`
- [JOINS](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/O)%20JOINS.md): curriculum chapter · Combines related relational datasets. · `O) JOINS.md`
- [Subqueries](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/P)%20Subqueries%20in%20SQL.md): curriculum chapter · Nested and dependent retrieval logic. · `P) Subqueries in SQL.md`

### Other components

- [README navigation](https://github.com/prince-ohio/ktu-s4-pccsl408-dbms-lab-notes/blob/main/README.md): entry point · Chapter-ordered reading and usage guide. · `README.md`

## Connections

- README navigation → DBMS introduction: starts curriculum
- DBMS introduction → Relational databases: introduces
- Relational databases → RDBMS data types: defines
- RDBMS data types → Keys: prepares
- Keys → ER diagrams: informs
- ER diagrams → SQL introduction: design before SQL
- SQL introduction → DDL commands: introduces
- Keys → DDL commands: guides schema identity
- DDL commands → SQL constraints: enforces schema rules
- SQL constraints → DML commands: governs row changes
- DML commands → Comparison operators: filters rows
- Comparison operators → UPDATE and DELETE: targets mutations
- UPDATE and DELETE → SQL functions: progresses to queries
- SQL functions → ORDER BY, GROUP BY, HAVING: derives then aggregates
- ORDER BY, GROUP BY, HAVING → CASE statements: adds conditional logic
- CASE statements → JOINS: advances to multi-table queries
- Keys → JOINS: relationship basis
- JOINS → Subqueries: advances to nested queries
- ORDER BY, GROUP BY, HAVING → Subqueries: supports nested analysis
