Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate total giving 2

Status
Not open for further replies.

abbottboi

IS-IT--Management
Nov 14, 2005
94
CA
Hi,

I'm working on a database for a charity. i have two tables, one for prospects and one for donations.

Prospects are linked to donations via
Code:
donor_id

I know need a report that produces a list of all donors with the total they donated (all donations added up together).

so for each donor_id, sum all donations found in donation_amount that's linked to the same donor_id

I'm sure this is simple but i really need a pointer in the right direction.

Thanks
 
Code:
Select P.doner_id, SUM(D.donation_amount) As [Total Donated]

From Prospects P INNER JOIN Donations D
     ON P.doner_id = D.doner_id

Group By P.doner_id
 
that looks awesome...

please give me a pointer as to where to add that in my database.
 
Copy it from this thread and paste it into SQL view of a new query in the query designer. Save the query using some meaningful name.
 
Sorry.. I'm a newfie (from Newfoundland) so i say guys for everyone..

Thanks Guys and Gals!!
 
I like to think we're all gender neutral in cyberspace....no offense taken!

Les
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top