Advertisement
contatowellington

Untitled

Sep 29th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. SELECT *, sum(total) as vendas, sum(quantidade) as totalquantidade, (totalquantidade*precovenda)-(quantidade*precocompra) as lucro
  2. FROM pedidos
  3. WHERE idcaixa = buscar
  4. GROUP BY produto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement