Q&A for programmers
DECLARE @UserId int = 13924; DECLARE @PostCount int; DECLARE @LinkPostCount int; SELECT @PostCount = COUNT(*) FROM Posts WHERE OwnerUserId = @UserId; SELECT @LinkPostCount = COUNT(*) FROM Posts WHERE OwnerUserId = @UserId AND (Body LIKE '%ffconsultancy%' OR Body LIKE '%fsharpnews%' OR Body LIKE '%ocamlnews%') SELECT (100.0*@LinkPostCount)/@PostCount as "Percentage", @LinkPostCount as "Posts Containing F#ey Fragment", @PostCount as "Total Posts"
Error: looks like you typed in the wrong words - try again