SOLVED : Hi, i'm learning Access and am trying to learn the SQL language for queries.
I'm ok building relatively simple queries but am now trying to take the next step by summarizing data with functions. So i am building Queries using the SQL View.
I have a table where our Users log various activities. Each activity has its own row. I can download the whole table and summarise in Excel with Pivots but this is very Resource heavy.
I want to create a query in Access that simply returns a breakdown of User, Customer and how many Activities of a certain type they have had logged against them. I have been trying to use the COUNT and IFF functions in the SELECT part of my statement but keep getting syntax errors.
I have attached a very simplified version of what i am looking for. Any help would be gratefully received!
Thanks
J
I'm ok building relatively simple queries but am now trying to take the next step by summarizing data with functions. So i am building Queries using the SQL View.
I have a table where our Users log various activities. Each activity has its own row. I can download the whole table and summarise in Excel with Pivots but this is very Resource heavy.
I want to create a query in Access that simply returns a breakdown of User, Customer and how many Activities of a certain type they have had logged against them. I have been trying to use the COUNT and IFF functions in the SELECT part of my statement but keep getting syntax errors.
I have attached a very simplified version of what i am looking for. Any help would be gratefully received!

Thanks
J
Attachments
Last edited: