Skip to content
Advertisement

Access Query to sum by day and count by hour / minute

I’m trying to write a query using the data below. My challenge is for each day, I need to count the number of times “105” appears in Col A and “100” appears in Col B. I do not need to count each instance “105” appears but rather each minute “105” appears. Likewise with Col B and “100”

Detail:

Query Result:

Any suggestions on how to do this would be greatly appreciated.

Advertisement

Answer

One method is to use distinct on each column separately. Then aggregate:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement