How do we get the count of a list in my SQL?

user12920775 :

The query I wrote works perfectly the only problem is that I need to get the count of the rows instead of the full list.

For example: here is my output and my query:

PSK :

You can change your query like following.

select count(*) totalcount from
(
    select count(employeeid) ct
    from eventmanagment 
    group by employeeid
    having count(*) > 5
)t

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=8567&siteId=1