Tags and Ids

0

Please login or register to vote for this query.

(click on this box to dismiss)

Woodworking

Q&A for professional and amateur woodworkers

--select t.TagName, PT.PostId
--from Tags t, PostTags PT
--where t.Id = PT.TagId
--Group by t.TagName

--SELECT PostId, TagId
--FROM PostTags
--Group by TagId

select count(PostId) as Rate, TagName
from
  Tags, PostTags, Posts
where Tags.Id = PostTags.TagId and Posts.Id = PostId
and Posts.CreationDate < '2019-07-01'
and Posts.CreationDate > '2018-01-01'
group by TagName

Enter Parameters

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