dmp <da...@ttc-cmc.net> wrote:
> I'm getting the following exception:
> 
> SQLException: [SQLITE_ERROR] SQL error or missing database (near "ASC": syntax
> error)
> 
> with:
> 
> SELECT name, color, Sum(price) AS price FROM key_table5 WHERE price > '2' 
> GROUP
> BY color ASC ORDER BY name ASC LIMIT 50 OFFSET 0

ASC is not valid with GROUP BY, only with ORDER BY. What is it supposed to 
achieve, anyway? Your query makes no sense to me.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to