select account_age, count(distinct ID) from ( Select ID, ...

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

-- Enter Query Title
-- Enter Query Description
select account_age, count(distinct ID) from (
Select ID, 2019 - DatePart(year,CreationDate) as account_age from Users) as t1
group by account_age order by account_age;

Enter Parameters

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