Hi everyone,
I'm currently working on creating reports and have been referencing the "Tickets" report for guidance. While reviewing the SQL query used in that report, I noticed that it's using an aggregate function (COUNT)—however, I don't see any subquery involved.
I'm a bit confused about how the aggregate function is being used in this context without a subquery. Could someone explain how this works or point out how the aggregation is being attached in such a case?
I've attached a preview of the SQL from the reference Tickets report below for context.
Thanks in advance!

