How to combine GROUP BY, ORDER BY and HAVING

前端 未结 3 1696
既然无缘
既然无缘 2021-02-01 15:32

How do I combine correctly this statement.

SELECT *, COUNT(*)
FROM user_log
GROUP BY Email
ORDER BY UpdateDate DESC
HAVING COUNT(*) > 1

Let

3条回答
  •  故里飘歌
    2021-02-01 15:48

    Steps for Using Group by,Having By and Order by...

    Select Attitude ,count(*) from Person
    group by person
    HAving PersonAttitude='cool and friendly'
    Order by PersonName.
    

提交回复
热议问题