Posts by Natan Alonso • 11 points
1 post
-
-3
votes1
answer57
viewsQ: I need to present the product with the highest gross sales
SELECT p.descricao_prod FROM produto p INNER JOIN venda v ON v.cod_prod = p.codigo WHERE p.preco = (SELECT MAX(p.preco) FROM produto p) I tried with this code, but, it only presents me the product…