This file contains hidden or 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 "Google"as name, count(distinct(pageid)) as count, | |
(100*count(distinct(pageid))/78160) as percent | |
from requests where pageid >= 14489007 and pageid <= 14802750 | |
and url LIKE "%//ajax.googleapis.com/ajax/libs/%" | |
UNION | |
select "Yandex" as name, count(distinct(pageid)) as count, | |
(100*count(distinct(pageid))/78160) as percent | |
from requests where pageid >= 14489007 and pageid <= 14802750 | |
and url LIKE "%//yandex.st/%" | |
UNION |
This file contains hidden or 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; |
This file contains hidden or 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 "jquery" AS name, | |
count(distinct(pageid)) AS count, | |
(100*count(distinct(pageid))/290835) AS percent | |
FROM requests WHERE pageid <= 14802750 AND pageid >= 14489007 | |
AND url LIKE "%//ajax.googleapis.com/ajax/libs/jquery/%" |
This file contains hidden or 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
test gist |
NewerOlder