sql - SUM quantity based on 3 columns in the table -
i have table shown here:
.
i need sum quantities same item , loc combinations dates in monthly buckets. instance between 1-june , 30 june, need sum quantities based on item , loc combinations.
select item, loc, year(date), month(date), sum(qty) quantity table group item, loc, year(date), month(date)
Comments
Post a Comment