Tag popular in location

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

--Thanks to https://data.stackexchange.com/stackoverflow/query/464894/top-tags-in-country?country=belgium



select 
row_number() over(order by count(p.id) desc) as [#],
t.tagname,
-- u.location,
count(p.id) as [number of tag]
from users u 
inner join posts p on p.ownerUserid = u.id
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
where 1=1
-- and t.tagname like ('%##tagname##%')
-- and u.location <> ''
group by t.tagname
--, u.location
order by count(p.id) desc

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results