Questions and Answers 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)
from Badges b, Users u
where b.UserId = u.Id
and u.DisplayName = 'Lewisham'
group by b.Date

Enter Parameters

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