HNQ research

This commit is contained in:
Glorfindel 2018-09-02 11:39:29 +02:00
parent 4f59fa5024
commit d5aa2f5100
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,8 @@
SELECT site, ROUND(AVG(time), 2) AS "average time", COUNT(*) AS "# of Q"
FROM (
SELECT site, question, COUNT(*) / 6.0 AS time
FROM snapshots
GROUP BY site, question
ORDER BY COUNT(*) DESC
) AS subquery GROUP BY site
ORDER BY AVG(time) DESC

View file

@ -0,0 +1,5 @@
SELECT site, ROUND(100.0 * COUNT(*) / (SELECT COUNT(*) FROM snapshots), 2) AS "percentage",
COUNT(DISTINCT(question)) AS "# of Q"
FROM snapshots
GROUP BY site
ORDER BY COUNT(*) DESC

BIN
hnq-research/HNQ.backup Normal file

Binary file not shown.