SQLite version 3.4.0 What\'s wrong with aggregate functions? Additionally, I suspect that ORDER BY won\'t work as well. How to rewrite this?
sqlite> SELE
Also make sure that of you don't use one of the columns that you are using COUNT/SUM for a WHERE clause. Make sure you use HAVING instead of WHERE for those variables.