Counting distinct values in Access
I have data stored below in MS Access database:
Date User
20090101 1001
20090101 1002
20090102 1001
20090103 1001
20090103 1003
I am trying to create a query that shows the daily launches of unique users. For instance:
Date Daily Count Unique User Running Count
20090101 2 2
20090102 1 2
20090103 2 3
What's the best way to achieve this?
+1
a source to share
3 answers
In most SQL implementations, you can choose to use the aggregate function counter (single user). But Access doesn't support this construct. I think the best thing is you can select different values in the subquery and count them.
I was about to write a request, but the link seems like a good job.
NTN Tom
+3
a source to share
