I have a table whose structure is as follows:
id int userid int status enum (\'pending\',\'approved\') dop datetime
Data is as:
Do you want to count the number of user with status pending then?
SELECT count(userid) FROM t1 WHERE STATUS = 'pending' GROUP BY status, userid