I'm learning MySQL, I need a help, I need to make a query that returns me a sales list by product category.
++++++++++++++++++++++++++++++++++++++++++++++
tb categoria
campos: (id, categoria)
dados: (12, camisas)
++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
tb produto
campos: (id, categoria_id, nome produto)
dados: (1 , 12, camisas leves)
++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
tb compra
campos: (id, produto_id, id_vendedor)
dados: (5, 1, 23)
++++++++++++++++++++++++++++++++++++++++++++++
In tb purchase I need to list the sales by category through the "product id" by the operator
Can you help me, please?