test

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

with day_user as 
(
  select  
        FORMAT (CreationDate, 'yy-MM') as created_year_month,
        Id,
        AccountId
  from Users
  --where CreationDate >= '2020-01-01'
)

select created_year_month,
      count(distinct Id) as nr_id,
      count(distinct AccountId) as nr_accountId
from   day_user
group
by     created_year_month
order
by     created_year_month

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results