Toys Sales Summary
EasyDescription
For the order lines of Toys products (category_id 8), show in one row:
lines: the number of order linesorders: the number of different orders those lines belong tounits: the total quantityrevenue: the sum of quantity × unit_price lessdiscount_pctpercent, rounded to 2 decimal places
Tables
| order_items |
|---|
| item_id (PK) |
| order_id (FK) |
| product_id (FK) |
| quantity |
| unit_price |
| discount_pct |
| products |
|---|
| product_id (PK) |
| product_name |
| category_id (FK) |