Example permalink

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

with Counts as (
    Select PostTypeId, count(*) as Total
    from Posts
    where PostTypeId = ##PTID:int?1##
    group by PostTypeId
)
select Name as [PostType], Total as [Count]
from Counts inner join PostTypes on PostTypeId = Id

Enter Parameters

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