Vous essayez de compter des lignes distinctes, mais vous n'utilisez pas de count(distinct ...)
SELECT
COUNT(distinct c.id) as "Total Customers",
COUNT(distinct p.id) as "Total Sales",
COUNT(distinct c.id) * 1.00 / COUNT(distinct p.id) as "Sales per customer"
FROM test_customers c
LEFT OUTER JOIN test_purchases p ON c.id = p.cid
Remarque, les performances ne sont pas excellentes