forked from github.com/GenderDysphoria.fyi
Working on analytics parsing
This commit is contained in:
13
analytics/queries.sql
Normal file
13
analytics/queries.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
SELECT
|
||||
date(dts) as day,
|
||||
count(DISTINCT IFNULL(tid, ip)) as tids
|
||||
FROM records
|
||||
GROUP BY date(dts);
|
||||
|
||||
SELECT
|
||||
(duration / 60) as minutes,
|
||||
COUNT(IFNULL(tid,ip)) as total
|
||||
FROM records
|
||||
WHERE duration > 1 AND duration < (60 * 30)
|
||||
GROUP BY duration / 60
|
||||
HAVING total > 5;
|
||||
Reference in New Issue
Block a user