Skip to content

Normalize ShopDB database to 3NF#168

Open
Petliuk wants to merge 1 commit into
mate-academy:mainfrom
Petliuk:normalize-shopdb
Open

Normalize ShopDB database to 3NF#168
Petliuk wants to merge 1 commit into
mate-academy:mainfrom
Petliuk:normalize-shopdb

Conversation

@Petliuk
Copy link
Copy Markdown

@Petliuk Petliuk commented May 13, 2026

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your solution successfully normalizes the ShopDB database from 1NF to 3NF. The schema correctly separates the original structure into four tables: Countries, Products, Warehouses, and ProductInventory, with proper foreign key relationships that maintain data integrity. The INSERT statements properly populate all normalized tables with equivalent test data while supporting multiple warehouses with varying product quantities per warehouse. The implementation uses MySQL-compatible syntax throughout with appropriate PRIMARY KEY and FOREIGN KEY constraints. All requirements from the task have been met, so your work is approved.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants