Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Contributor Count German Wikipedia 2016_v1
by
Verena Lindner (WMDE)
This query is marked as a draft
This query has been published
by
Jan Dittrich (WMDE)
.
A query to find out how many people: created a new account and as well reached 10 edits in a certain time
Toggle Highlighting
SQL
USE dewiki_p; -- German Wikipedia SELECT user_id, user_editcount -- user_id "is the primary key, used to uniquely identify a user"; editcount counts edits since account creation FROM user -- table user https://www.mediawiki.org/wiki/Manual:User_table INNER JOIN revision -- join table "user" with table "revision", but only rows in which that (ON) is the case. Also, JOIN = INNER JOIN ON user_id = revision.rev_user; COUNT(*) -- "The COUNT(*) function returns the number of records in a table:" HAVING -- similar to WHERE, but for aggregate functions LOWER(CONVERT (rev_user_text USING latin1)) NOT LIKE '%bot%' AND -- What is "LOWER?!" rev_user != 0 AND -- dont count all edits page_namespace = 0 AND page_is_redirect = 0 AND rev_timestamp BETWEEN 20161201000000 AND 20170101000000; user_editcount=10 -- where Editcount is exactly 10 LIMIT 10 -- if not otherwise noted, Quotes are from http://www.w3schools.com/sql/
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...