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

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 Id) as posts
from
(select a.Id, TagName
from Posts a join Tags b
on a.Id = b.WikiPostId
where year(creationdate) = 2017
group by a.id, TagName) a
group by TagName
order by posts desc

Enter Parameters

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