1
I’m learning Mysql, I need help, I need to perform a query that returns 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 need to list sales by category through the "product id" by the operator
You can help me, please?
edits the question and places part of your project connection and variables
– user45474
In the category table what is the data type ? int ?
– J.Victor