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
Udo T.
.
dewikt-Stimmberechtigung ermitteln. Oben den username ersetzen und den Beginn der Abstimmung in den 2 Datumsfeldern, wie im Kommentar angemerkt ACHTUNG: Bei @utc_timestamp_str ist die UTC-Zeit anzugeben, sonst könnte das Ergebnis faslch sein
Toggle Highlighting
SQL
select /* SLOW_OK */ count(*) as min_150 from revision_userindex r, page p where r.rev_actor = (select a.actor_id from actor_revision a where a.actor_name = '<username>') and p.page_id = r.rev_page and p.page_namespace = 0 and r.rev_timestamp <= '20241211100000' and rownum() <= 150 union all select /* SLOW_OK */ count(*) as older_than_1_month from revision_userindex r where r.rev_actor = (select a.actor_id from actor_revision a where a.actor_name = '<username>') and r.rev_timestamp <= (SELECT DATE_FORMAT(DATE_SUB('20241211100000', INTERVAL 1 MONTH), '%Y%m%d%H%i00'));
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...