select count(*) FROM Tags JOIN PostTags ON Tags.Id = Post...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select count(*)
FROM Tags 
JOIN PostTags ON Tags.Id = PostTags.TagId
JOIN Posts ON Posts.Id = PostTags.PostId
JOIN Comments ON Posts.Id = Comments.PostId
WHERE Tags.TagName IN ('scala')
AND Posts.CreationDate > DATEADD(Month, -24, DATEADD(dd, DATEDIFF(dd, 0, getdate()), 0) );

Enter Parameters

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