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_dt AS ( SELECT rev_timestamp AS dt, 'constant' AS constant FROM revision WHERE rev_id = (SELECT MIN(rev_id) FROM revision)), least_ar_rev_dt AS ( SELECT ar_timestamp AS dt 'constant' AS constant FROM archive WHERE ar_rev_id = (SELECT MIN(ar_rev_id) FROM archive)) SELECT CASE WHEN rev.dt <= ar_rev.dt THEN rev.dt ELSE ar_rev.dt END AS dt FROM least_rev_dt rev JOIN least_ar_rev_dt 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...