SQL
x
use eswiki_p;
SELECT now() as 'ultima ejecucion';
SELECT if(cl_to = 'Mujeres', 'Mujeres', 'Hombres') as genero, count(1) as counted
FROM page
INNER JOIN revision ON rev_page = page_id
INNER JOIN categorylinks ON cl_from = page_id
WHERE rev_timestamp between '20200301000000' AND '20200401000000'
AND rev_parent_id = 0
AND page_namespace = 0
AND cl_to in ('Mujeres', 'Hombres')
GROUP BY 1;
SELECT page_title, page_len, rev_timestamp
FROM page
INNER JOIN revision ON rev_page = page_id
INNER JOIN categorylinks ON cl_from = page_id
WHERE rev_timestamp between '20200301000000' AND '20200401000000'
AND rev_parent_id = 0
AND page_namespace = 0
AND cl_to = 'Mujeres'
ORDER BY 3 ASC;
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.