Pre-requisites - Read access to a replicator database
To count the number of signups by day, we can use the chain_events table to query the number
of ID_REGISTER events
and group by day.
Copy
Ask AI
SELECT DATE_TRUNC('day', created_at) AS day, COUNT(*) AS countFROM chain_eventsWHERE type = 3 -- ID_REGISTER (see event types reference page)GROUP BY dayORDER BY day desc;