运行以下查询我收到以下消息
无效使用群组
SELECT COUNT( id ) AS pages,
hash, MIN( DATE( TIMESTAMP ) ) AS FirstVisit,
MAX( DATE( TIMESTAMP ) ) AS LastVisit
FROM behaviour
WHERE MIN( DATE( TIMESTAMP ) ) != MAX( DATE( TIMESTAMP ) )
GROUP BY hash
如何编辑此查询以便不显示FirstVisit等于LastVisit的行?
答案 0 :(得分:0)
汇总函数SELECT
*
FROM
tableName
ORDER BY
breaking_news DESC,
news_published_dt ASC
其中can't be used in
有`。
试试这个:
clause, but can be used in