Quantcast
Channel: What URL is closest to a given metric's average value?
Browsing all 5 articles
Browse latest View live

What URL is closest to a given metric's average value?

Need some query help, but this is the gist of what I’m trying to do: SELECT url, ABS(onLoad - AVG(onLoad)) deviation FROM [httparchive:runs.latest_pages] ORDER BY deviation ASC LIMIT 1; Any...

View Article



What URL is closest to a given metric's average value?

Hmm… Well, while its not pretty, I guess you could run two different queries: compute the average (manually) feed the average into ABS() comparison @fhoffa is there a more clever way to tackle this...

View Article

What URL is closest to a given metric's average value?

Ta-da: SELECT url, ABS(onLoad - avg) deviation FROM ( SELECT url, onLoad, AVG(onLoad) OVER() avg FROM [httparchive:runs.latest_pages]) ORDER BY deviation LIMIT 1; Read full topic

View Article

What URL is closest to a given metric's average value?

Ah, clever! I tried something similar, but couldn’t get it to work… need to learn more about partition() and over(). Read full topic

View Article

What URL is closest to a given metric's average value?

That’s great, thanks for the help guys. I used that as a starting point to combine many averages together for a more wholesome look at “the most average page ever”. SELECT url, ABS(onLoad - avgOnLoad)...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images