我不是MS Access方面的专家,上次我为它编写任何内容都花了很长时间,但这也许行得通:
SELECt cd.DiagCode, Count(cd.CustomerID)FROM (select distinct DiagCode, CustomerID from CustomerTable) as cd Group By cd.DiagCode;

我不是MS Access方面的专家,上次我为它编写任何内容都花了很长时间,但这也许行得通:
SELECt cd.DiagCode, Count(cd.CustomerID)FROM (select distinct DiagCode, CustomerID from CustomerTable) as cd Group By cd.DiagCode;