SQL error: misuse of aggregate

后端 未结 3 1632
夕颜
夕颜 2020-12-03 02:46

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         


        
3条回答
  •  北海茫月
    2020-12-03 03:28

    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.

提交回复
热议问题