H
HB
Here is the query:
SELECT Count(MEMBER.MemberNumber) AS CountOfMemberNumber,
Sum(TRANSACTION.TransAmt) AS SumOfTransAmt
FROM MEMBER INNER JOIN [TRANSACTION] ON MEMBER.MemberID = TRANSACTION.MemberID
WHERE (((MEMBER.EquityStatus)="FULL" Or (MEMBER.EquityStatus)="CURRENT" Or
(MEMBER.EquityStatus)="NONCURRENT") AND ((TRANSACTION.[Transaction
Type])="Deposit"));
The problem is the count, it returns the number of "deposit" rows with
matching Member number instead of the count of member number. I tried using
Distinct but got errors. How do I get the count of members, and the sum of
the TransAmt.
tia.
SELECT Count(MEMBER.MemberNumber) AS CountOfMemberNumber,
Sum(TRANSACTION.TransAmt) AS SumOfTransAmt
FROM MEMBER INNER JOIN [TRANSACTION] ON MEMBER.MemberID = TRANSACTION.MemberID
WHERE (((MEMBER.EquityStatus)="FULL" Or (MEMBER.EquityStatus)="CURRENT" Or
(MEMBER.EquityStatus)="NONCURRENT") AND ((TRANSACTION.[Transaction
Type])="Deposit"));
The problem is the count, it returns the number of "deposit" rows with
matching Member number instead of the count of member number. I tried using
Distinct but got errors. How do I get the count of members, and the sum of
the TransAmt.
tia.