// sign in
Enter your credentials to continue to your workspace.
forgot password? ask your workspace owner
“How many active customers do we have in each region last month?”
SELECT region, COUNT(*) AS active FROM customers WHERE last_seen >= date_trunc('month', NOW()) - INTERVAL '1 month' GROUP BY region ORDER BY active DESC;