SQL
AخA
WITH
foo AS (
SELECT page_id, page_title
FROM page
WHERE page_namespace = 640
),
bar AS (
SELECT pp_page, pp_value
FROM page_props
WHERE pp_propname = 'displaytitle'
AND pp_page IN (SELECT page_id FROM foo)
)
SELECT page_title, pp_value
FROM foo
JOIN bar ON page_id = pp_page
ORDER BY page_title DESC
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.