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
SET @Initial = "20181001000000"; WITH cat_filter AS ( SELECT rev_id, rev_actor FROM categorylinks INNER JOIN revision ON cl_from = rev_page WHERE cl_to = "Images_from_Wiki_Loves_Monuments_2018" AND cl_type = "file" AND rev_parent_id = 0), newuser_filter AS ( SELECT DISTINCT user_name, actor_user, user_registration FROM cat_filter INNER JOIN actor ON actor_id = rev_actor AND rev_actor != 0 INNER JOIN user ON actor_user = user_id AND user_id != 0 WHERE user_registration BETWEEN "20180901000000" and "20180930235959" AND user_name NOT LIKE '%Bot%'), edit_filter AS ( SELECT user_name, FROM newuser_filter #RIGHT JOIN revision ON rev_actor = revision_actor ) # WHERE user_name = "Susu Phisi" ) #INNER JOIN user ON actor_user = user_id AND user_id != 0) #SUM(DATEDIFF(rev_timestamp, user_registration) < 30 AND page_namespace = 0) AS early_main_edits SELECT * #user_name, user_registration, rev_timestamp, rev_id #DISTINCT rev_id, user_name, user_registration, #IF((DATEDIFF(rev_timestamp, @Initial) BETWEEN 0 AND 30), COUNT(rev_id), 0) AS after_thirty_days #SUM(DATEDIFF(rev_timestamp, @Initial) BETWEEN 0 AND 30) AS after_thirty_days #SUM(DATEDIFF(rev_timestamp, @Initial) BETWEEN 31 AND 60) AS after_sixty_days, #SUM(DATEDIFF(rev_timestamp, @Initial) BETWEEN 61 AND 90) AS after_ninty_days #rev_timestamp, @Initial FROM edit_filter #ORDER BY rev_timestamp ASC #WHERE rev_timestamp = "20180930031551" and user_name = "Susu Phisi" #ORDER BY user_name#, rev_timestamp LIMIT 100 # DISTINCT user_name, user_registration, rev_id, rev_timestamp user_name, user_registration, rev_id, rev_parent_id, rev_timestamp # (COUNT(rev_id) IF DATEDIFF(rev_timestamp, @Initial) < 30) AS after_thirty_days # IF(DATEDIFF(rev_timestamp, @Initial) BETWEEN 0 AND 30, COUNT(rev_id), NULL) # Check these users Ulaisaeva, Susu Phisi, Tatiana Pantylei, Tsyganov Sergey, TP RADHAKRISHNAN, Tag Scientist, TheMajesticPilot, The paavam guy
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...