SQL
AخA
USE itwiki_p;
SELECT GIORNO, CONTRIBUTI, PATROLLED, CONCAT(ROUND(PATROLLED * 100 / CONTRIBUTI), ' %') AS PERCENTUALE, CONCAT(ROUND(ANONIMIPATROLLED * 100 / ANONIMI), ' %') AS SoloNonRegistrati
FROM (
SELECT SUBSTR(rc_timestamp, 1, 8) AS GIORNO,
SUM(rc_user > -1) AS CONTRIBUTI,
SUM(rc_patrolled) AS PATROLLED,
SUM(rc_user = 0) AS ANONIMI,
SUM(rc_patrolled AND rc_user = 0) AS ANONIMIPATROLLED
FROM recentchanges
WHERE rc_type < 5
GROUP BY GIORNO
ORDER BY rc_id DESC
LIMIT 72
) AS edits;
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.