Example permalink


Please login or register to vote for this query.

(click on this box to dismiss)

Code Review

Q&A for peer programmer code reviews

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

Switch sites:
loading Hold tight while we fetch your results