in reply to Re^2: Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.
in thread Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.
If it does not work on the sqlite3 command line then it is a problem with SQL and SQLite. There is very little we can do from a Perl perspective.
As your SQL statement is quite long, try reducing the columns and aggregates.
The error message says that you try to GROUP BY something that is an aggregate function, which SQLite does not allow (and which does not make much sense to me either). Consider moving your subselects into views maybe to disambiguate the aggregates etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.
by saumitra121 (Novice) on Jul 30, 2012 at 12:31 UTC | |
by Corion (Patriarch) on Jul 30, 2012 at 12:38 UTC | |
by roboticus (Chancellor) on Jul 30, 2012 at 12:56 UTC |