HNQ research
This commit is contained in:
parent
4f59fa5024
commit
d5aa2f5100
3 changed files with 13 additions and 0 deletions
8
hnq-research/HNQ-average-time-by-site.sql
Normal file
8
hnq-research/HNQ-average-time-by-site.sql
Normal 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
|
5
hnq-research/HNQ-snapshots-by-site.sql
Normal file
5
hnq-research/HNQ-snapshots-by-site.sql
Normal 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
BIN
hnq-research/HNQ.backup
Normal file
Binary file not shown.
Loading…
Reference in a new issue