Question 5

0

Please login or register to vote for this query.

(click on this box to dismiss)

Earth Science

Q&A for those interested in the geology, meteorology, oceanography, and environmental sciences

SELECT 
    STRING_AGG(t.TagId, ', ') AS Tags,
    COUNT(t.TagId) AS NumberofTags,
    p.Id AS PostId,
    p.OwnerUserId,
    p.Body AS PostBody
FROM 
    Posts p
JOIN 
    PostTags t ON p.Id = t.PostId
GROUP BY 
    p.Id, p.OwnerUserId, p.Body
HAVING 
    COUNT(t.TagId) >= 5

Enter Parameters

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