• And add the date to that solution to yield

    
    
    SELECT item_no, date, sum(qty)
    FROM table
    GROUP BY item_no, date