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
Stuartyeates
.
Finding articles in need of talk pages (enwiki) (new schema)
Toggle Highlighting
SQL
SELECT p.page_id, p.page_title, r.rev_id FROM revision AS r, linktarget AS lt, page AS p #magic three lines give only those article pages which don't have a talk page LEFT OUTER JOIN page AS p2 ON p.page_title = p2.page_title AND p.page_namespace = 0 AND p2.page_namespace = 1 WHERE p2.page_title IS NULL AND p.page_is_redirect = 0 AND #get a time-slice p.page_latest = r.rev_id AND r.rev_timestamp > 20180000000000 AND r.rev_timestamp < 20190000000000 # get the linktarget of the templatelink #tl.tl_from = p.page_id AND #tl.tl_from_namespace = p.page_namespace AND #tl.tl_target_id = lt.lt_id AND #p.page_title = "Camp_Elmore" LIMIT 10
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...