Q&A about the site for serious players and enthusiasts of chess
DECLARE @UserId int = 47773 Select Comments, Posts, (Posts+Comments) as Total FROM (select sum(len(Body)) AS Posts FROM posts where owneruserid = @UserId ) as p, (select sum(len(Text)) AS Comments FROM comments where userid = @UserId ) as c