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)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

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

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
  JOIN Users ON Posts.OwnerUserId = Users.Id

WHERE
  Tags.TagName IN (
    'c','python','r','c#'
  ) AND
  Year(Posts.CreationDate) IS NOT NULL
  
  
group by
      Tags.TagName,
      Year(Posts.CreationDate),
      location
      
order by
      Tags.TagName,Year(Posts.CreationDate), location

Enter Parameters

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