You are on page 1of 1

with temp_table as(

select src_player_id,ActivityMonth,active_days from(


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

You might also like