Created
April 18, 2012 09:17
-
-
Save andydavies/2412258 to your computer and use it in GitHub Desktop.
Extracts data to plot a histogram of resources vs count of pages from HTTP Archive data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Extracts data to plot histogram of resources vs count of pages from HTTP Archive data | |
-- For bigger groupings change ROUND(resources, 0): -1 = 10, -2 = 100 | |
SELECT ROUND(resources, 0) AS ResourcesPerPage, | |
COUNT(*) AS Pages | |
FROM (select count(*) as resources from requests group by pageid) as temp | |
GROUP BY ResourcesPerPage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment