Questions by tags

1

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint

Q&A for SharePoint enthusiasts

DECLARE @UserId int = 9951 --<-- Change this by your user ID.

SELECT
    TOP 20 TagName,
    Count(*) AS Answers
FROM
    Tags
  INNER JOIN
    PostTags ON PostTags.TagId = Tags.id
  INNER JOIN
    Posts ON Posts.ParentId = PostTags.PostId
WHERE
    Posts.ParentId IS NOT NULL
  AND
    Posts.CommunityOwnedDate IS NULL
  AND
    Posts.OwnerUserId = @UserId
GROUP BY
    TagName
ORDER BY
    Answers DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results