Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation
DECLARE @UserId int = ##UserId## SELECT OwnerUserId as [User Link], COUNT(*) as PostCount, SUM(Score) as TotalScore FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = @UserId GROUP BY OwnerUserId