D
damon.blackmore
I'm trying to get a count of all the Contributors who have given to
more than one candidate. Here's my code:
SELECT Contributor.Contributor_ID, Contributor.Contributor,
Count(Contribution.Candidate_ID) AS NumberContributions
FROM Contributor INNER JOIN Contribution ON
Contributor.Contributor_ID=Contribution.Contributor_ID
GROUP BY Contributor.Contributor_ID, Contributor.Contributor
HAVING Count(Contribution.Candidate_ID) > 1;
When I try to run the query, it asks for Contribution.Contributor_ID,
as though it's looking for a form input. If I enter nothing and just
accept, it returns a blank query. How do I get this to just pull every
instance?
more than one candidate. Here's my code:
SELECT Contributor.Contributor_ID, Contributor.Contributor,
Count(Contribution.Candidate_ID) AS NumberContributions
FROM Contributor INNER JOIN Contribution ON
Contributor.Contributor_ID=Contribution.Contributor_ID
GROUP BY Contributor.Contributor_ID, Contributor.Contributor
HAVING Count(Contribution.Candidate_ID) > 1;
When I try to run the query, it asks for Contribution.Contributor_ID,
as though it's looking for a form input. If I enter nothing and just
accept, it returns a blank query. How do I get this to just pull every
instance?