I have an inventory table with products, dateOfCount, and Qty.
If this is the input:
product1 6/1/2015 1
product1 6/1/2015 1
product1 5/1/2015 1
I want a query to sum the qty of only the MaxDate, so in the example I gave, the total Qty would be 2.
Currently I can output the max date just fine, but when I sum the Qty I keep getting 3 as my output.
Thanks.