sql - SUM quantity based on 3 columns in the table -


i have table shown here:

table.

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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -