Answer the question
In order to leave comments, you need to log in
How to count the number of users to whom the admin replied?
How can you count the number of responses for the admin field and each repeating user was counted as one person helped by the admin
Output:
admin count_user(number of users who were helped by admin without repeating
Answer the question
In order to leave comments, you need to log in
SELECT admin, COUNT( DISTINCT user )
FROM table
GROUP BY admin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question