Each Product vs Its Category Average
EasyDescription
For every product show category_id, product_name, price and category_avg:
the average price of the products in the same category, rounded to 2 decimal places.
End your query with ORDER BY category_id, product_id.
Tables
| products |
|---|
| product_id (PK) |
| product_name |
| category_id (FK) |
| price |