SELECT datepart(year,posts.CreationDate) as post_year, da...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

SELECT datepart(year,posts.CreationDate) as post_year, 
         datepart(month,posts.CreationDate) as post_month, 
         tags.TagName as tag, 
         COUNT(*) as month_count
         
FROM PostTags as pt
    INNER JOIN (SELECT Id, CreationDate FROM Posts WHERE PostTypeId = 3) as posts 
    ON pt.PostId = posts.Id
    
    INNER JOIN Tags as tags 
    ON pt.TagId = tags.Id
    
WHERE tags.TagName in ('python')
  
GROUP BY datepart(year,posts.CreationDate), 
           datepart(month,posts.CreationDate), 
           tags.TagName

Enter Parameters

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