L
L
LCMDHOST2019-10-26 08:49:41
MySQL
LCMDHOST, 2019-10-26 08:49:41

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
5db3dd218f25e796887430.png
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

1 answer(s)
K
Konstantin Tsvetkov, 2019-10-26
@LCMDHOST

SELECT admin, COUNT( DISTINCT user ) 
  FROM table
  GROUP BY admin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question