Islanders Intro

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

select 
  case 
    when Year(CreationDate) = 2008 then '13 Years Old' 
    when Year(CreationDate) = 2009 then '12 Years Old'
    when Year(CreationDate) = 2010 then '11 Years Old'
    when Year(CreationDate) = 2011 then '10 Years Old'
    when Year(CreationDate) = 2012 then '9 Years Old'
    when Year(CreationDate) = 2013 then '8 Years Old'
    when Year(CreationDate) = 2014 then '7 Years Old'
    when Year(CreationDate) = 2015 then '6 Years Old' 
    when Year(CreationDate) = 2016 then '5 Years Old'
    when Year(CreationDate) = 2017 then '4 Years Old'
    when Year(CreationDate) = 2018 then '3 Years Old'
    when Year(CreationDate) = 2019 then '2 Years Old'
    when Year(CreationDate) = 2020 then '1 Year Old'
    else 'Created in 2021'
    end as AccountAge, 
    count (*) 
from Users
group by Year(CreationDate)

Enter Parameters

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