//count for every date: SELECT date(created_at), COUNT(*) FROM message_requests GROUP BY date(created_at)