there are two fields in my online user list, namely userID (user id) and Wid (room id).
). Now count the total number of people in the same type of primary, intermediate, advanced and super rooms.
I can get the number of people in each room after grouping through group, but I can"t integrate it further
select COUNT (UserID), wid from dbo.ViewOnlineUsers group by WID
want to get, for example, a total of 50 people in the primary, intermediate and advanced fields of two Niuniu, in one field.