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
Etonkovidova (WMF)
.
Toggle Highlighting
SQL
SELECT weekstart, SUM(user) as unique_users FROM ( SELECT 1 as user, DATE(DATE_SUB(FROM_UNIXTIME((conv(substring(hex(rev_id),1,12),16,10)>>2)/1000), interval DAYOFWEEK( FROM_UNIXTIME((conv(substring(hex(rev_id),1,12),16,10)>>2)/1000)) day)) as weekstart FROM flow_revision WHERE rev_user_wiki NOT IN ( 'testwiki', 'test2wiki' ) GROUP BY rev_user_wiki, rev_user_id, rev_user_ip ) x WHERE weekstart < DATE_SUB(CURDATE(), interval DAYOFWEEK(NOW()) day) GROUP BY weekstart;
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...