Posts by Dalton Kolln • 3 points
1 post
-
0
votes1
answer410
viewsQ: Mysql, use SUM(total) > 10 quantity in WHERE
I have the following MYSQL query: SELECT SUM(A.val) AS totalvendas, B.cod AS codigo, B.nom AS Nome, B.reg AS regiao FROM venda AS A LEFT JOIN vendedor AS B ON A.ven = B.cod WHERE reg = "norte" GROUP…