Fork of Median account age for EXTCON by Cryptic
This query is marked as a draft This query has been published by Cryptic.

SQL

AخA
 
WITH active(ts) AS
(
  SELECT COALESCE(UNIX_TIMESTAMP(user_registration), 0)
  FROM user
  JOIN user_groups ON ug_user = user_id
  JOIN actor_recentchanges ON actor_user = user_id
  WHERE ug_group IN ('extendedconfirmed', 'sysop')
    AND EXISTS (SELECT 1 FROM recentchanges_userindex WHERE rc_actor = actor_id)
  GROUP BY user_name
)
SELECT FROM_UNIXTIME(MEDIAN(ts) OVER ())
FROM active
LIMIT 1;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...