Answer the question
In order to leave comments, you need to log in
How to make a mysql query, output by month 2 values?
There is a status field (0,1) there is a creation date field, you need to make a selection from the entire database by months with the number of status 1 and status 0
SELECT month(reviews.rev_create) as mn , count(reviews.status) as one FROM reviews GROUP BY month(reviews.rev_create), reviews.status;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question