wesnoth/utils/mp-server/query-scripts/09-oos-vs-game-count.sql
Pentarctagon 67c169ed80 Add scripts to pull various pieces of information from the MP database.
The intent being that I plan to run these once a month and post the results on the forum.
2020-03-26 14:54:53 -05:00

6 lines
286 B
SQL

select count(*) as GAME_COUNT, sum(OOS) as OOS_COUNT
from wesnothd_game_info
where YEAR(START_TIME) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH)
and MONTH(START_TIME) = MONTH(CURRENT_DATE - INTERVAL 1 MONTH)
and END_TIME is not NULL
and TIMESTAMPDIFF(MINUTE, START_TIME, END_TIME) > 5