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
MusikAnimal
.
Toggle Highlighting
SQL
SELECT 'Total edits' AS `type`, COUNT(*) AS `count` FROM recentchanges WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND rc_bot = 0 UNION SELECT '2017 wikitext editor' AS `type`, COUNT(*) AS `count` FROM recentchanges JOIN change_tag ON ct_rc_id = rc_id WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'visualeditor-wikitext') AND rc_bot = 0 UNION SELECT 'VisualEditor (desktop and mobile)' AS `type`, COUNT(*) AS `count` FROM recentchanges JOIN change_tag ON ct_rc_id = rc_id WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'visualeditor') AND rc_bot = 0 UNION SELECT 'Discussion Tools' AS `type`, COUNT(*) AS `count` FROM recentchanges JOIN change_tag ON ct_rc_id = rc_id WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'discussiontools') AND rc_bot = 0 UNION SELECT 'Mobile web' AS `type`, COUNT(*) AS `count` FROM recentchanges JOIN change_tag ON ct_rc_id = rc_id WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mobile web edit') AND rc_bot = 0 UNION SELECT 'Mobile app' AS `type`, COUNT(*) AS `count` FROM recentchanges JOIN change_tag ON ct_rc_id = rc_id WHERE rc_timestamp > DATE_SUB(NOW(), INTERVAL 3 DAY) AND ct_tag_id = (SELECT ctd_id FROM change_tag_def WHERE ctd_name = 'mobile app edit') AND rc_bot = 0
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...