troubleshooting Question

(500 pts.) Opposite of sum in a select query

Avatar of Cristal638
Cristal638 asked on
Microsoft Access
12 Comments1 Solution433 ViewsLast Modified:
Hi All,
This might be a simple one, but I can't seem to figure it out.  500 pts. because I need it right away.

I have a query that has 2 records per ID in it.  One for the run month and one for the prior month.

for example:

AsOf      ID      Shift
30-Jun-06      9113      -2.23096039
31-Jul-06      9113      0.278805355
30-Jun-06      9103      2.8866533
31-Jul-06      9103      1.297256548

What I want is the opposite of sum for each ID.
for example:

ID      NewShift
9113      2.509765745
9103      -1.589396753

Any help would be greatly appreciated.
Thanks,
Dave
ASKER CERTIFIED SOLUTION
peter57r

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 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 12 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