You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sadly, in SQlite, this throws an OperationalError: misuse of aggregate: Count() - which upon further investigation on SO turns out to be a specific SQlite issue where filtering by aggregates has to be done inside HAVING clause instead of WHERE - http://stackoverflow.com/questions/648083/sql-error-misuse-of-aggregate - any chance you could look into this please
The text was updated successfully, but these errors were encountered:
When aggregating, you can only filter on aggregates in the HAVING clause. Additionally, you need to tell the database how to group the rows -- in this case, by user.
My bad, I thought I had filtered by SUM or COUNT in a WHERE clause in MySQL before.. but maybe that was an erroneous recollection. thanks for the help!
What I'm trying to do is something like:
Sadly, in SQlite, this throws an
OperationalError: misuse of aggregate: Count()
- which upon further investigation on SO turns out to be a specific SQlite issue where filtering by aggregates has to be done insideHAVING
clause instead ofWHERE
- http://stackoverflow.com/questions/648083/sql-error-misuse-of-aggregate - any chance you could look into this pleaseThe text was updated successfully, but these errors were encountered: