select TagName, count(distinct WikiPostId) as posts from ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

select TagName, count(distinct WikiPostId) as posts
from
(select b.WikiPostId, TagName
from Posts a join Tags b
on a.Id = b.WikiPostId
where year(creationdate) = 2017
group by b.WikiPostId, TagName) a
group by TagName
order by posts

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results