Which Tags a user created and its count


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

;with CountOfCreatedTags as
    select t.Id [tagId], count(1) [count]
    from Tags t
    inner join Posts p on p.Id = t.WikiPostId
    inner join PostTags pt on pt.TagId = t.Id
    where p.OwnerUserId = ##UserId##
    group by t.Id
    having count(1) >= 0
select t.TagName, coct.[count] [QuestionCount]
from CountOfCreatedTags coct
inner join Tags t on coct.tagId = t.Id
order by coct.[count] desc

Enter Parameters

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