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).
Start course → 0 / 61 lessonsOrientation & How to Pass COMP 378
The Database Environment & Development Process
Conceptual Data Modeling (the E-R Model)
The Enhanced E-R Model (EER)
Logical Design, the Relational Model & Normalization
- The Relational Model: Relations, Keys & Nulls
- Integrity Constraints: Domain, Entity & Referential
- Well-Structured Relations & the Three Anomalies
- Transforming EER Diagrams into Relations (the 7 Rules)
- Functional Dependencies & Determinants
- Normal Forms: 1NF → 2NF → 3NF
- Normalization Workshop: Decompose to 3NF
- From 3NF to a Running Table: CREATE TABLE with Constraints
SQL — Defining & Querying One Table
- The SQL Environment: DDL / DML / DCL, Catalog & Schema
- Data Types, CHECK, DEFAULT & Schema Evolution (ALTER / DROP)
- Modifying Data: INSERT / UPDATE / DELETE
- SELECT … FROM … WHERE: Projection, Filtering, DISTINCT & Predicates
- Aggregate Functions: COUNT, SUM, AVG, MIN, MAX (and the three COUNTs)
- GROUP BY & HAVING: Per-Category Aggregates
- Presenting Results: ORDER BY, LIMIT/OFFSET & Column Aliases
- Indexes & Query Performance (Intro)
Advanced SQL: Multi-Table, Subqueries, Views & Programmability
- Joins I: INNER JOIN, Equi-Join, Natural Join (and the Comma-Join)
- Joins II: OUTER (LEFT/RIGHT/FULL), SELF JOIN & CROSS JOIN
- Multi-Table Aggregation: 3–4 Table Joins with GROUP BY
- Non-Correlated Subqueries: IN / NOT IN
- Correlated Subqueries & EXISTS / NOT EXISTS
- Set Operations: UNION, INTERSECT & EXCEPT (MINUS)
- Derived Tables & CASE Expressions
- Views (Dynamic vs. Materialized) & WITH CHECK OPTION
- Triggers, Stored Procedures & SQL/PSM