Q&A for professional and enthusiast programmers
select year (CreationDate) as year_, month (CreationDate) as month_, count (distinct Id) as id, count (distinct AccountId) as userid from Users group by year (CreationDate), month (CreationDate);