troubleshooting Question

Need SQL method to Summarize Data

Avatar of trims30
trims30 asked on
Microsoft SQL ServerSQL
5 Comments1 Solution437 ViewsLast Modified:
Need some direction on how best to program the following:

I have two tables "MASTER" and "TRANSACTION"
TRANSACTION field MID is linked to MASTER ID Field MID

MASTER Table contains MID, Description and 12 columns "Jan" Feb".. etc, each representing expenditures for each month of the year.

TRANSACTION table contains MID, Transaction Date and Transaction Amount

I need to:
1. zero out each month column in each row of Master Table
2. read each Transaction Row and add it's Transaction Amount to the proper month column in the related MASTER Table Row.

Any suggestions??

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros