mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 15:26:17 +00:00
14 lines
279 B
MySQL
14 lines
279 B
MySQL
|
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;
|