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
MahmoudHashemi
.
Add "AND rc_user=0" to the end of the list of conditions for anonymous edit counts. Add "AND rc_bot=1" to the end of the list of conditions for bot edit counts.
Toggle Highlighting
SQL
use jawiki_p; SELECT COUNT(*) AS edits, COUNT(DISTINCT rc_user) AS users, COUNT(DISTINCT rc_cur_id) AS titles FROM recentchanges WHERE rc_namespace = 0 AND rc_type = 0 AND rc_timestamp > DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 7 DAY); /* add AND rc_user=0 to the end for anonymous edit counts */ /* add AND rc_bot=1 to the end for bot edit counts */
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...