
The intent being that I plan to run these once a month and post the results on the forum.
8 lines
332 B
SQL
8 lines
332 B
SQL
select date(START_TIME) as GAME_DATE, count(*) as GAME_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
|
|
group by GAME_DATE
|
|
order by GAME_DATE
|