select Tags.TagName as Tag, Year(Posts.CreationDate) as y...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Islam

Q&A for Muslims, experts in Islam, and those interested in learning more about Islam

select 
       Tags.TagName as Tag,
       Year(Posts.CreationDate) as year,
       count(*) as questions

FROM Tags
  LEFT JOIN PostTags ON PostTags.TagId = Tags.Id
  LEFT JOIN Posts ON Posts.Id = PostTags.PostId
  LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId

WHERE
  Tags.TagName IS NOT NULL
  AND
  Year(Posts.CreationDate) IS NOT NULL
  
  
group by
      Tags.TagName,
      Year(Posts.CreationDate)
      
order by
      Tags.TagName,Year(Posts.CreationDate)

Enter Parameters

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