Sales by category - relational data model
I have a fairly 'standard' ecommerce data model
(See attached for full detail)
Product
- id
- name
Product_Category
- product_id
- category_id
Category
- id
- parent_id
- name
- path
Order
- id
Order_Item
- order_id
- product_id
- amount
I'm trying to create a report: Sales by category.
What's the best way of doing this? Order items are joined to product, which in turn is joined to product category/