This SQL query first creates a temporary table that selects player IDs, activity months, and active days from a player activity data table, only keeping records where active days are greater than 5. It then selects from the temporary table to count unique player IDs for each activity month, grouping and ordering by month.
This SQL query first creates a temporary table that selects player IDs, activity months, and active days from a player activity data table, only keeping records where active days are greater than 5. It then selects from the temporary table to count unique player IDs for each activity month, grouping and ordering by month.
This SQL query first creates a temporary table that selects player IDs, activity months, and active days from a player activity data table, only keeping records where active days are greater than 5. It then selects from the temporary table to count unique player IDs for each activity month, grouping and ordering by month.
select src_player_id,ActivityMonth ,max(ActivePlayerDays) as active_days from Player_Activity_Data group by src_player_id, ActivityMonth) temp where active_days>5 )
select month(ActivityMonth) as month, year(ActivityMonth) as year,count(src_player_id) as
unique_users from temp_table group by ActivityMonth order by ActivityMonth