Organizing a Customer Orders Table into First Normal Form (1NF)
📖 Scenario: You work at a small online store. The store keeps track of customer orders in a table. Currently, the orders table has a problem: some columns contain multiple values in one cell, which makes it hard to work with the data.Your job is to fix this by organizing the data into First Normal Form (1NF). This means each column should hold only one value per row, making the table easier to use and understand.
🎯 Goal: You will create a new table that follows First Normal Form (1NF) rules. This means no repeating groups or multiple values in a single column. Each order item will have its own row with one product per row.
📋 What You'll Learn
Create an initial table with customer orders where some columns have multiple values
Add a helper variable to identify the order to split
Write a query to split the multiple product values into separate rows
Create a new table that stores the orders in 1NF format with one product per row
💡 Why This Matters
🌍 Real World
Organizing data into First Normal Form helps businesses keep their databases clean and easy to use, especially when dealing with orders, customers, or inventory.
💼 Career
Database administrators and developers often need to normalize data to improve database design, performance, and maintainability.
Progress0 / 4 steps