An order_items table has (order_id, product_id, product_name, quantity)
A medium Data Modeling interview practice problem on DataDriven. Write and execute real data modeling code with instant grading.
- Domain
- Data Modeling
- Difficulty
- medium
Problem
An order_items table has (order_id, product_id, product_name, quantity). The product_name depends only on product_id, not the full composite key. Extract products into a separate table to achieve 2NF.
Practice This Problem
Solve this Data Modeling problem with real code execution. DataDriven runs your solution and grades it automatically.