Q&A about the site for developers and users of Stellar and the Stellar Distributed Exchange
/* SELECT TOP 10 ownerUserId, SUM(score) AS totalScore FROM posts WHERE (tags LIKE '%<sql>%' OR tags LIKE '%<r>%' OR tags LIKE '%<python>%') AND ownerUserId IS NOT NULL GROUP BY ownerUserId ORDER BY totalScore DESC ; */ SELECT COUNT(*), 'posts' AS "table" FROM posts UNION ALL SELECT COUNT(*), 'users' FROM users UNION ALL SELECT COUNT(*), 'tags' FROM tags