Is there a quick way to duplicate the effect of the Count(Distinct [f]) in MS Access?
For example:
Data Table for a single referral (there are a few thousand of these in the real data):
| Referral ID | Assessment Date | Assessment Team | Service Provided | Service Team
| 1 | 02/01/2008 | AAA | BBB | AAA
| 1 | 02/01/2008 | AAA | CCC | AAA
| 1 | 02/01/2008 | AAA | DDD | BBB
| 1 | 03/01/2008 | BBB | EEE | CCC
I want a query that gives:
| Referral ID | Number of Assessments | Teams Assessing | Services Provided | No Teams Providing
| 1 | 2 | 2 | 4 | 3
Any help appreciated!