TF team posts type distribution


Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

--TF' upvotes
--A bit more unbiased insight than reputation

Create Table #postInfo (
  [PostId] int  null,
  [postOwnerUserId] int  null,
  [postTypeId] int  null,
  [postScore] int null,
  [postViewCount] int null,
  [postAnswerCount] int null,
  [postCommentCount] int null,
  [postFavoriteCount] int null,


Insert Into #postInfo

select Posts.Id as [PostId],
Posts.OwnerUserId as [postOwnerUserId],
Posts.postTypeId as [postTypeId],
Posts.Score as [postScore],
Posts.ViewCount as [postViewCount],
Posts.AnswerCount as [postAnswerCount],
Posts.CommentCount as [postCommentCount],
Posts.FavoriteCount as [postFavoriteCount]

from Posts
-- inner join Users on Users.Id=Posts.OwnerUserId
      (posts.Tags LIKE '%tensorflow%') 
    --posts.OwnerUserId = 11530462
--group by 
order by postScore desc


select count(postId) as postCount, 
       count(distinct(postOwnerUserId)) as userCount, 
       sum(postScore) as totalscore, 
       sum(postViewCount) as totalViewCount, 
       sum(postAnswerCount) as totalAnsCount, 
       sum(postFavoriteCount) as totalFavouriteCount, 
       sum(postCommentCount) as totalPostComment

from  #postInfo

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results