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
Nivas10798
.
Toggle Highlighting
SQL
#SELECT (DATEDIFF("20180930000000", "20180901000000")) AS DateDiff SET @Initial = "20181001000000"; SELECT DISTINCT user_name, user_registration, SUM(DATEDIFF(rev_timestamp, @Initial) BETWEEN 0 AND 30) AS after_thirty_days #rev_id, rev_timestamp, @Initial #IF((DATEDIFF(rev_timestamp, @Initial) <= 30), COUNT(rev_timestamp), 0) AS after_thirty_days FROM user INNER JOIN actor ON actor_user = user_id AND user_id != 0 INNER JOIN revision ON rev_actor = actor_id AND rev_actor != 0 INNER JOIN categorylinks ON rev_page = cl_from WHERE cl_to = "Images_from_Wiki_Loves_Monuments_2018" AND cl_type = "file" AND user_name NOT LIKE '%Bot%' AND rev_parent_id = 0 AND user_name = "Susu Phisi" #ORDER BY rev_timestamp ASC # GROUP BY user_name
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...