SQL
AخA
USE simplewiki_p;
SELECT rc_this_oldid AS rev_id, rc_cur_id AS page_id
FROM recentchanges LEFT JOIN user_groups
ON recentchanges.rc_user = user_groups.ug_user
WHERE
(rc_timestamp < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 2 DAY), "%Y%m%d%H%I%S") AND
rc_type IN (0,1)) AND
user_groups.ug_user IS NULL
ORDER BY RAND()
LIMIT 20000;
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.