Hello SQL expert,
How do I Sum Spending field without including Datespending in my group?
Below is my query:
Select Material
,Spending
,DateSpending
From PurchasingTbl
these are some samples from bove query result set is:
Material Spending DateSpending
A $50.45 01/01/2016
B $27.33 01/02/2016
D $34.56 01/05/2016
F $66.66 01/13/2016
G $83.46 01/28/2016
A $88.11 02/05/2016
C $33.26 02/17/2016
G $99.17 02/25/2016
B $13.10 03/10/2016
C $76.88 03/15/2016
G $87.12 03/26/2016
A $55.33 04/17/2016
H $98.12 04/25/2016
The purpose I dont want to include DateSpending in the grouping by
when I do sum of spending so I can total sum when I custom my
DateSpending parameter by monhtly.