Query to show average # of months all accounts with specific role have been active

I’m trying to determine how long (in average number of months) all accounts (active & deactivated accounts) under role “x” have been around in my site.

I have the following piece of code however don’t know how to query further:

$count)
echo ‘, ‘, $count, ‘ are ‘, $role, ‘s’;
echo ‘.’;
?>

Any help would be greatly appreciated

Read more here:: Query to show average # of months all accounts with specific role have been active

Leave a Reply

Your email address will not be published. Required fields are marked *