Badges per Month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

select (CAST(cast(DATEPART(YYYY, b.date) as varchar) + '-' + cast(DATEPART(MM, b.date) as varchar) + '-01' as datetime)) as Month,
count(b.Id) as BadgesAwarded
from Badges b, Users u
where b.UserId = u.Id
and u.DisplayName = 'Lewisham'
group by (CAST(cast(DATEPART(YYYY, b.date) as varchar) + '-' + cast(DATEPART(MM, b.date) as varchar) + '-01' as datetime))

Enter Parameters

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