Gladimir
Well-known member
I found this thread on the same subject by Cassio, but the question seems to remain unanswered.
I have two fields, MemID and Description, in a table named ReferenceADGroups.
The following SQL statement produces a Count of 670:
However, some users are duplicated in these groups, so I need to add the DISTINCT function. The following SQL statement produces 665 rows:
How do I combine these two functions to write a statement that only produces a COUNT of the DISTINCT Member IDs?
Thanks in advance for your help.
I have two fields, MemID and Description, in a table named ReferenceADGroups.
The following SQL statement produces a Count of 670:
Code:
SELECT COUNT(MemID)
FROM ReferenceADGroups
WHERE (Description="ARMS");
However, some users are duplicated in these groups, so I need to add the DISTINCT function. The following SQL statement produces 665 rows:
Code:
SELECT DISTINCT MemID
FOM ReferenceADGroups
WHERE (Description="ARMS");
How do I combine these two functions to write a statement that only produces a COUNT of the DISTINCT Member IDs?
Thanks in advance for your help.