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
Edgars2007
.
use lvwiki_p; SELECT left(t4.rev_timestamp,8) as Diena, count(left(t4.rev_timestamp,8)) as Labojumi FROM revision AS t4 inner join page p on t4.rev_page=p.page_id WHERE p.page_namespace=0 and p.page_is_redirect=0 and t4.rev_timestamp between 20150101000000 and 20160101000000 and t4.rev_user not in (select ug.ug_user from user_groups ug where ug.ug_group='bot' and t4.rev_user=ug.ug_user) GROUP BY left(t4.rev_timestamp,8)
Toggle Highlighting
SQL
use lvwiki_p; SELECT page_title as "Lapas nosaukums", page_len as "Lapas garums", count(*) AS "Labojumi", count(distinct rev_user_text) as "Labotāji", ROUND(LN(COUNT(*)) * (LN(COUNT(DISTINCT rc_user_text))+1.4), 2) AS weighted_rank FROM revision LEFT JOIN page ON revision.rev_page=page.page_id WHERE page_namespace=0 and rev_timestamp between 20150101000000 and 20160101000000 GROUP BY page_title ORDER BY count(*) DESC, count(rev_user_text) desc, page_title LIMIT 100
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...