COMP 378 — Introduction to Database Management
Model it, normalize it, and query it in real SQL — exam-ready
A full database course: design with the E-R and enhanced E-R models, decompose to third normal form, and write real SQL — from single-table SELECTs to multi-table joins, subqueries, set operations, and views — executed live against real Postgres in your browser. Covers transactions, indexing, data warehousing, and big data, aligned to the COMP 378 exam (query writing, 3NF decomposition, and E-R modeling).
0 / 61 lessonsOrientation & How to Pass COMP 378
4 cardsThe Database Environment & Development Process
15 cardsConceptual Data Modeling (the E-R Model)
26 cardsThe Enhanced E-R Model (EER)
17 cardsLogical Design, the Relational Model & Normalization
26 cards- The Relational Model: Relations, Keys & Nulls ◈ 3
- Integrity Constraints: Domain, Entity & Referential ◈ 3
- Well-Structured Relations & the Three Anomalies ◈ 3
- Transforming EER Diagrams into Relations (the 7 Rules) ◈ 4
- Functional Dependencies & Determinants ◈ 3
- Normal Forms: 1NF → 2NF → 3NF ◈ 3
- Normalization Workshop: Decompose to 3NF ◈ 3
- From 3NF to a Running Table: CREATE TABLE with Constraints ◈ 4
SQL — Defining & Querying One Table
36 cards- The SQL Environment: DDL / DML / DCL, Catalog & Schema ◈ 3
- Data Types, CHECK, DEFAULT & Schema Evolution (ALTER / DROP) ◈ 4
- Modifying Data: INSERT / UPDATE / DELETE ◈ 4
- SELECT … FROM … WHERE: Projection, Filtering, DISTINCT & Predicates ◈ 6
- Aggregate Functions: COUNT, SUM, AVG, MIN, MAX (and the three COUNTs) ◈ 5
- GROUP BY & HAVING: Per-Category Aggregates ◈ 5
- Presenting Results: ORDER BY, LIMIT/OFFSET & Column Aliases ◈ 5
- Indexes & Query Performance (Intro) ◈ 4
Advanced SQL: Multi-Table, Subqueries, Views & Programmability
48 cards- Joins I: INNER JOIN, Equi-Join, Natural Join (and the Comma-Join) ◈ 6
- Joins II: OUTER (LEFT/RIGHT/FULL), SELF JOIN & CROSS JOIN ◈ 6
- Multi-Table Aggregation: 3–4 Table Joins with GROUP BY ◈ 5
- Non-Correlated Subqueries: IN / NOT IN ◈ 6
- Correlated Subqueries & EXISTS / NOT EXISTS ◈ 6
- Set Operations: UNION, INTERSECT & EXCEPT (MINUS) ◈ 5
- Derived Tables & CASE Expressions ◈ 5
- Views (Dynamic vs. Materialized) & WITH CHECK OPTION ◈ 5
- Triggers, Stored Procedures & SQL/PSM ◈ 4