Q&A for people studying math at any level and professionals in related fields
/*SELECT ROW_NUMBER() OVER(ORDER BY Score DESC) AS [#], us.id [User Link], us.DisplayName, tuser.Score FROM Users us JOIN (SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Score FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts ON Posts.Id = PostTags.PostId JOIN Posts Answers ON Answers.ParentId = Posts.Id WHERE Tags.TagName IN ('angular') GROUP BY Answers.OwnerUserId ) tuser ON tuser.UserId = us.Id ORDER BY Score DESC; */ --select * from posttags --select * from posts where id=5145659 select sum(viewcount), year(creationdate),month(creationdate) from posts where id in (select parentid from posts where owneruserid=3858469 and posttypeid=2) and posttypeid=1 and owneruserid=3858469 group by year(creationdate),month(creationdate) order by year(creationdate) desc