I need help to make queries via SQL
; I have two tables, one of products and the other output of products, here the code
Select
saiprod_codproduto,
saiprod_quantidade,
saiprod_valorproduto,
saiprod_valortotal
from saida_produto where
saiprod_cod_saida_pai = 1 \aqui viene una variable este valor para prueba
group by
saiprod_codproduto,
saiprod_quantidade,
saiprod_valorproduto,
saiprod_valortotal
Result, two records equivalent to note number 1
Result
(1, 1, 7000, 5200);
(2, 1, 5200, 5200);
We have the code 1 and 2, now what I need is the name of the product, which is in another table