What are the common keys in SQL, and how do you approach normalization techniques?
Using the provided normalized tables, write a query that demonstrates how related records are connected through their keys and summarizes order activity for every customer.
customer_name, order_count, and total_quantity.customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_date | DATE | Date the order was placed |
| Column | Type | Description |
|---|---|---|
| order_item_idPK | INT | Unique order item identifier |
| order_id | INT | Order containing the item |
| product_code | VARCHAR(30) | Product code |
| quantity | INT | Quantity recorded for the item |