Daily limits for outgoing mails per user

Try this using the Data Explorer plugin

SELECT user_id, date_trunc('day', created_at) AS date_sent, COUNT(*) AS total
  FROM email_logs 
  WHERE skipped = false
  GROUP BY user_id, date_sent
  ORDER BY total DESC

emails-by-person.dcquery.json.txt (286 Bytes)

Edit: Updated it to use date_trunc
Edit 2: Added skipped check

4 إعجابات