count cancelled recurring orders

PHOTO EMBED

Tue Oct 26 2021 20:52:25 GMT+0000 (Coordinated Universal Time)

Saved by @etanderson

SELECT customers.id, customer_operations.created, count(customer_actions.action_type_id)
FROM ((customer_operations 
       INNER JOIN customer_actions ON customer_actions.operation_id=customer_operations.id) 
      INNER JOIN customers ON customers.id=customer_operations.customer_id) 
WHERE customer_actions.action_type_id=302
content_copyCOPY