wesnoth/utils/mp-server/query-scripts/18-oos-vs-game-count.sql
Pentarctagon a22da2291b
Store side leader information in the database
Fixes #7267
Add new query for getting leader data.
2023-04-21 13:58:17 +02: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