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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum Query "Double Counts" data

Status
Not open for further replies.

dip757

Programmer
Jun 8, 2001
13
US
Hi,

I have 2 tables. One hold header info .... like nameID (primary key) name, address, country.

The second table holds donor info: nameID (primarykey), amt, etc......

I QUERY these 2 tables linking by "Name ID" to get the following data:

NameID Name Country Amt


When I DO NOT do the "Group BY", I get the correct data.

When I hit "Group By" and Make Amt = "Sum by" and rest "group by" ..... some of the data gets "DOUBLE COUNTED".

Pls. help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top