Bird
0
0

Which SQL statement best represents a normalized table structure?

easy📝 Syntax Q3 of 15
SQL - Database Design and Normalization
Which SQL statement best represents a normalized table structure?
ACREATE TABLE Orders (order_id INT, customer_id INT, product_id INT)
BCREATE TABLE Orders (order_id INT, customer_name VARCHAR(50), product_name VARCHAR(50))
CCREATE TABLE Orders (order_id INT, customer_name VARCHAR(50), product_id INT, product_name VARCHAR(50))
DCREATE TABLE Orders (order_id INT, customer_name VARCHAR(50), customer_address VARCHAR(100), product_name VARCHAR(50))
Step-by-Step Solution
Solution:
  1. Step 1: Understand normalized table design

    Normalized tables use IDs to link data, avoiding repeated text fields.
  2. Step 2: Identify the option using IDs for relations

    CREATE TABLE Orders (order_id INT, customer_id INT, product_id INT) uses customer_id and product_id, which is normalized.
  3. Final Answer:

    CREATE TABLE Orders (order_id INT, customer_id INT, product_id INT) -> Option A
  4. Quick Check:

    Normalized tables use IDs = CREATE TABLE Orders (order_id INT, customer_id INT, product_id INT) [OK]
Quick Trick: Normalized tables link by IDs, not repeated text [OK]
Common Mistakes:
  • Including customer names directly in Orders table
  • Repeating product names in multiple rows
  • Not using foreign keys or IDs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes