2
Guys I have the following tables in my BD Mysql:
produtos_pedido
with the following fields
id,id_request,id_product,Qtd
produtos_troca
with the following fields
id,id_request,id_product,Qtd
Well I need to make one SELECT
where I return the id_produto
(with distinct without repeating the product) and the qtd
(total, that is by adding the Qtd of the equal products) but I have to join the two tables.
This is possible in Mysql?
Could someone help me with this SELECT
?
Do you want the total quantity of products in the two tables? Or the quantity of products per order/exchange?
– Marcelo de Andrade
the total quantity of products
– Hugo Borges