Select Distinct TagName, Count (u.Id) From Users u, Posts...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

Select Distinct TagName, Count (u.Id)
From Users u, Posts p, Tags t, PostTags pt
WHERE
(u.Id=p.OwnerUserId) AND (pt.PostID=p.Id) AND (pt.TagId=t.Id) AND
     Upper(t.TagName) LIKE Upper('%##TagName##%') AND
     Upper(u.Location) LIKE Upper('%##Location##%')
Group By TagName

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results