SELECT date1, count(id) as cnt, tag FROM ( select Posts....

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computer Science Meta

Q&A about the site for students, researchers and practitioners of computer science

SELECT date1, count(id) as cnt, tag
FROM (

select Posts.Id, ViewCount, Tags.TagName as [tag], FORMAT (Posts.CreationDate, 'yyyy') as [date1] from Posts 
    join PostTags on Posts.Id = PostTags.PostId
    join Tags on Tags.Id = PostTags.TagId
where
  PostTypeId = 1
    
  ) as t1
group by date1, tag
order by date1

Enter Parameters

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