Some analtics work

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-03-22 18:26:45 -07:00
parent c8537b3ac9
commit 131be58887
2 changed files with 26 additions and 4 deletions

View File

@@ -11,3 +11,12 @@ FROM records
WHERE duration > 1 AND duration < (60 * 30)
GROUP BY duration / 60
HAVING total > 5;
SELECT referrer_host, count(DISTINCT IFNULL(tid, ip)) as tids, referrer
FROM records
GROUP BY referrer_host;
SELECT COUNT(IFNULL(tid,ip)) as total, referrer
FROM records
WHERE referrer_host LIKE '%reddit.com'
GROUP BY referrer