Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
KCVelaga (WMF)
.
Toggle Highlighting
SQL
WITH least_rev_ts AS ( SELECT MIN(rev_timestamp) AS dt, 'constant' AS constant FROM revision ), least_ar_rev_ts AS ( SELECT MIN(ar_timestamp) AS dt, 'constant' AS constant FROM archive ) SELECT CASE WHEN rev.dt <= ar_rev.dt THEN rev.dt ELSE ar_rev.dt END AS dt FROM least_rev_ts rev JOIN least_ar_rev_ts ar_rev ON rev.constant = ar_rev.constant
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...