SQL
AخA
SELECT CAST(log_timestamp AS DATETIME) AS `timestamp`,
actor_name,
page_title,
CONCAT('[[:Category:', GROUP_CONCAT(cl_to SEPARATOR ']] [[:Category:'), ']]') AS `categories`
FROM (SELECT log_timestamp, actor_name, page_title, log_page
FROM logging
LEFT JOIN actor_logging ON actor_id = log_actor
JOIN page ON page_id = log_page
WHERE log_type = 'create'
AND page_namespace = 0
AND page_is_redirect = 0
ORDER BY log_id DESC
LIMIT 150) sq
LEFT JOIN categorylinks ON cl_from = log_page
GROUP BY log_timestamp, actor_name, page_title;
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.