Q&A for professionals and students of engineering
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