Last active
August 29, 2015 13:57
-
-
Save mr-mig/9447777 to your computer and use it in GitHub Desktop.
SQL for Most popular jQuery versions from Google CDN - Mar 1 2014, httparchive.org
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
select SUBSTRING( | |
url FROM POSITION("/libs/jquery/" IN url) + 13 | |
FOR | |
LOCATE("/jquery", url, POSITION("/libs/jquery/" IN url) + 13) - (POSITION("/libs/jquery/" IN url) + 13) | |
) as version, | |
count(distinct(pageid)) as count, | |
(100*count(distinct(pageid))/59977) as percent | |
from requests where pageid >= 14489007 and pageid <= 14802750 | |
and url LIKE "%//ajax.googleapis.com/ajax/libs/jquery/%.min.js" | |
group by version order by count desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment