Skip to content

Instantly share code, notes, and snippets.

@fditrapani
Created February 14, 2019 19:52
Show Gist options
  • Save fditrapani/3077fc5a637e2cad35e1a9734a9b60d9 to your computer and use it in GitHub Desktop.
Save fditrapani/3077fc5a637e2cad35e1a9734a9b60d9 to your computer and use it in GitHub Desktop.
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
ep.key = 'site_type' and
ep.value = 'business' and
ep2.key = 'site_topic'
group by value
order by counts desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment