Avatar of wtisystems
wtisystems
 asked on

How do I use the SQL "SUM" function and group by the month of a date field?

This is what I'm trying to do.  The "Date.Month" (I know it's wrong) is the problem.
SELECT Date,SUM(Amount) as decTotalAmount FROM Transactions GROUP BY Date.Month
It should give me the total of transactions for each month.
Thanks.
Visual Basic.NET

Avatar of undefined
Last Comment
wtisystems

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Sharath S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
wtisystems

ASKER
Thanks.  That was perfect.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy