Query editor
1SELECT2 type,3 COUNT(*) AS total_transactions4FROM fuel.transactions5GROUP BY type6ORDER BY total_transactions DESC
SELECT
type,
COUNT(*) AS total_transactions
FROM fuel.transactions
GROUP BY type
ORDER BY total_transactions DESC