Lab 10: Database Design & Normalization
Overview
Step 1: Why Normalization?
-- Un-normalized table (everything in one place)
-- order_details: order_id, customer_name, customer_email, customer_city,
-- product_sku, product_name, product_category, quantity, price
-- Problems:
-- 1. Customer info repeated for every order item
-- 2. Change customer city → update ALL their order rows
-- 3. Delete all items → lose customer record
-- 4. Can't store product without an orderStep 2: First Normal Form (1NF)
Step 3: Second Normal Form (2NF)
Step 4: Third Normal Form (3NF)
Step 5: Build Normalized Schema from Raw Data
Step 6: Query Normalized Schema
Step 7: Denormalization Trade-offs
Scenario
Normalized
Denormalized
Step 8: Capstone — Verify Schema Integrity
Summary
Normal Form
Requirement
Fixes
Concept
Description
Last updated
