Q&A about the site for administrators, end users, developers and designers for Craft CMS
select count(*) N, round(avg(1.0*datediff(year, CreationDate, getdate())), 1) acct_age, avg(Reputation) avg_rep, isnull(Location, '') location from Users where Location like '%pai%' group by isnull(Location, '') order by count(*) desc