I have searched for solution, but nothing similar.
My problem is that I want to select data from database, group it by UserID and Count it by Status id
Users
UserID
Name
Appointments
UserID
ClientID
Status
StartDate
Status can be active=1, canceled=2, done=3
This is how I will display results.

Thanks in advance.
In you question you say you want to group on
UserId, but in the output you showName. This query will group on both. You might want to adjust it to your needs.(this will handle the case if two users have the same name though)