Posts by Alan da Matta • 36 points
1 post
-
2
votes1
answer96
viewsA: Get sales average for a given month
Do not use 'like' for dates, use between or larger and smaller than. Ex.: select avg(a.vend_qtde) from tb_vendas a where a.esto_descricao like '%Saco pedra%' and vend_data between '2018-01-01' and…