This project applies First and Second Normal Forms (1NF & 2NF) to convert unnormalized datasets into well‑structured SQL tables.
The goal is to eliminate redundancy, enforce data consistency, and implement a clean relational schema using SQL.
- Apply 1NF by splitting multi-valued attributes into separate rows.
- Normalize to 2NF by removing partial dependencies and organizing data into logical tables.
- Define primary keys and foreign key constraints to ensure referential integrity.
- Make the script safely re-executable using
DROP TABLE IF EXISTS
. - Document all steps with in-line SQL comments for clarity.
- Open your SQL environment (MySQL Workbench, DBeaver, CLI, etc.).
- Connect to your local database (e.g.,
testdb
orclassicmodels
). - Execute the statements from
answers.sql
in order. - Verify that the following tables are created:
ProductDetail_1NF
CustomerOrders
OrderItems
- Query the tables to verify normalized data and relationships.
answers.sql
— Full SQL script implementing 1NF and 2NF transformations.README.md
— This file, describing the structure and purpose of the project.
Developed by Augusto Mate — Student at Power Learn Project Academy (PLP)
Week 7 assignment for the Database Design & Programming with SQL
GitHub: github.com/Augusto047
MIT License © 2025 Software Development Course 2025