I'm trying to find the easiest way to return some results based on dates. So for example the table is like this
product date qty
corn 4/18/16 5
corn 4/18/16 1
corn 4/15/16 10
I would want the results to be
product 4/15/16 4/18/16
corn 10 6
So I am grouping by the product, sum the qty, but each column in result will be a different WHERE filedate = .
Can someone please point me in the right direction?