Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
RedWarn/Ultraviolet users, past month
by
Sportzpikachu
This query is marked as a draft
This query has been published
by
Sportzpikachu
.
Forked from Chlod's fork of AntiCompositeNumber's original query Tag ids: 577 = RW, 618 = UV, 583 = TW
Toggle Highlighting
SQL
-- ================================================================================== -- 2023-12-14 - Updated by [[User:Sportzpikachu]] -- * Check UV instead of TW -- * Check for edits in past month -- * Require at least 1 RW/UV edit in past month -- * Additional query for count of users with more UV edits than RW in past month -- Improved by RW developer Chlod, forked from AntiCompositeNumber's original -- RW users script. Both versions released under CC0 (per Quarry terms). SET @RW_TAG_ID := 577, @UV_TAG_ID := 618, @TW_TAG_ID := 583; -- 577 = RW, 618 = UV, 583 = TW SELECT COUNT(IF(ct_tag_id = @RW_TAG_ID, 1, NULL)) as RW_Count, COUNT(IF(ct_tag_id = @UV_TAG_ID, 1, NULL)) as UV_Count FROM revision_userindex JOIN change_tag ON ct_rev_id = rev_id WHERE (ct_tag_id = @RW_TAG_ID OR ct_tag_id = @UV_TAG_ID) AND rev_timestamp > DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 MONTH);
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...