J
jwalsh2000 via AccessMonster.com
I've read through the many many threads already here on this subject but
can't seem to translate what I see in those answers into solving my query - I
realize that this is remedial work and appreciate any help I can get. I know
that I have to replace my count distinct with a count function and a subquery
that gets the distinct value, but I can't figure out how to write the
subquery and where to insert it in the rest of the query:
SELECT [Profile Balance Data Appended].[Asset Group], Sum([Profile Balance
Data Appended].[Net Worth]) AS [SumOfNet Worth], [Profile Balance Data
Appended].Office, Count(distinct [Profile Balance Data Appended].[Account #])
AS [CountOfAccount #]
FROM [Profile Balance Data Appended]
GROUP BY [Profile Balance Data Appended].[Asset Group], [Profile Balance Data
Appended].Office;
Many thanks,
Jen
can't seem to translate what I see in those answers into solving my query - I
realize that this is remedial work and appreciate any help I can get. I know
that I have to replace my count distinct with a count function and a subquery
that gets the distinct value, but I can't figure out how to write the
subquery and where to insert it in the rest of the query:
SELECT [Profile Balance Data Appended].[Asset Group], Sum([Profile Balance
Data Appended].[Net Worth]) AS [SumOfNet Worth], [Profile Balance Data
Appended].Office, Count(distinct [Profile Balance Data Appended].[Account #])
AS [CountOfAccount #]
FROM [Profile Balance Data Appended]
GROUP BY [Profile Balance Data Appended].[Asset Group], [Profile Balance Data
Appended].Office;
Many thanks,
Jen