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%'
group by comment_text, actor_name
order by rev_actor
/**/
-- właściwie zapytanie
/**
select 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 like '%barier%'
and
comment_text COLLATE UTF8_GENERAL_CI like '%#wiki%'
group by comment_text, actor_name
order by rev_actor
/**/
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.