Query editor
WITH user_tx_counts AS (SELECT "from",COUNT(DISTINCT hash) AS tx_countFROM viction.transactionsGROUP BY "from")SELECTCOUNT(CASE WHEN tx_count > 1 THEN 1 END) * 100.0 / COUNT(*) AS retention_rate_percentFROM user_tx_counts;
Query editor
1WITH user_tx_counts AS (2SELECT "from",3COUNT(DISTINCT hash) AS tx_count4FROM viction.transactions5GROUP BY "from"6)7SELECT8COUNT(CASE WHEN tx_count > 1 THEN 1 END) * 100.0 / COUNT(*) AS retention_rate_percent9FROM user_tx_counts;10