Answers for "mysql count rows group by month"

SQL
0

mysql count grouped rows

SELECT DISTINCT my_field, COUNT(*) FROM my_table GROUP BY my_field;

-- Count of grouped rows:
SELECT COUNT(*) FROM (
  SELECT DISTINCT my_field FROM my_table
);
Posted by: Guest on April-23-2021
0

mysql record group by created date count

//count for every date:

SELECT date(created_at), COUNT(*)
FROM message_requests
GROUP BY date(created_at)
Posted by: Guest on September-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language