SQL
x
USE plwiki_p;
-- describe revision;
-- przegląd opisów (czy używają wszyscy #?)
-- -> ogólnie używają... poza: https://pl.wikipedia.org/wiki/Specjalna:Wk%C5%82ad/Jotjotem
/**
select comment_text, actor_name, count(*)
from revision r
left join comment c ON rev_comment_id= comment_id
left join actor a ON rev_actor = actor_id
where
-- po starcie akcji (z grubsza ostatnia edycja z 2 grudnia)
rev_id > 61567392
and
-- comment_text COLLATE UTF8_GENERAL_CI LIKE '%Barier%' -> binary ????
-- REGEXP_LIKE(comment_text, 'barier') -> denied ????
comment_text LIKE '%ez%arier%'
group by comment_text, actor_name
order by rev_actor
/**/
-- właściwie zapytanie
/**/
select actor_name as `uczestniczka(-ik)`, count(*) as `l. edycji`, count(distinct rev_page) as `l. stron`
from revision r
left join comment c ON rev_comment_id= comment_id
left join actor a ON rev_actor = actor_id
where
-- po starcie akcji (z grubsza ostatnia edycja z 2 grudnia)
rev_id > 61567392
and
comment_text LIKE '%#%ikiped%ez%arier%'
group by actor_name
order by actor_name
/**/
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.