Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.

by Anonymous Monk
on Jul 30, 2012 at 10:03 UTC ( [id://984413]=note: print w/replies, xml ) Need Help??


in reply to Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.

does it work from commandline sqlite3 client?
  • Comment on Re: Error in query with DBD-SQLite-1.37 - Aggregate functions are not allowed in the GROUP BY clause.

Replies are listed 'Best First'.
Re^2: 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 11:44 UTC
    No its giving the same error when I ran it on SQLite-3.7.11 command line. Please check my updated answer with new findings and guide me with troubleshooting this issue.

      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.

        Can u please help me in troubleshooting why DBD-SQlite is unable to detect the the current SQLITE version? The strange thing is that the same query with GROUP BY is running fine with DBI but not on command line.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://984413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found