Skip to content
Advertisement

Sum By Group in Access 2016 Query

I have a query that returns the following data:

enter image description here

I am trying to adapt it to sum the total number of runs at each venue. I have come up with the query below but there are two issues:

  1. it is not summing by venue it is summing all runs;

  2. it takes a very long time to run.

Can anyone see what I’m doing wrong?

Thanks

Advertisement

Answer

If you want the total number of runs for each venue, then a simple aggregation query does what you want:

If you want this in your original query, you could join it in:

I don’t think you need a group by fro your query.

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