SELECT STRING_AGG(T.TagName, ',') AS Tags, COUNT(PT.TagId...

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint Meta

Q&A about the site for SharePoint enthusiasts

SELECT
    STRING_AGG(T.TagName, ',') AS Tags,
    COUNT(PT.TagId) AS NumberOfTags,
    P.Id AS PostId,
    P.OwnerUserId AS UserId,
    P.Body AS PostBody
FROM Posts P
JOIN PostTags PT ON P.Id = PT.PostId
JOIN Tags T ON PT.TagId = T.Id
GROUP BY P.Id, P.OwnerUserId, P.Body
HAVING COUNT(PT.TagId) >= 5;

Enter Parameters

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