You can use team_id
in the group by
and remove the particular condition g1.team_id = '1610612759'
as follows:
select ATS_Status, team_id, round((cast(count(*) as float) /75*100),2) as ATS_Percentage
from (select
(case when cast(g2.pts as float)-cast(g1.pts as float) < cast(spread2 as float) then 'Covered'
when cast(g2.pts as float)-cast(g1.pts as float) = cast(spread2 as float) then 'Push'
else 'Loss' end) as ATS_Status, g1.team_id
from nba_games_all g1
left outer join nba_games_all g2 on g1.game_id = g2.game_id
and g1.team_id =g2.a_team_id
left join nba_teams_all t on t.team_id=g1.a_team_id
left join nba_betting_spread bs on g1.game_id = bs.game_id
and book_name = 'Bovada'
left join nba_betting_money_line ml on g1.game_id = ml.game_id
and ml.book_name = 'Bovada'
where --g1.team_id = '1610612759'
g1.season_year = '2017'
and g1.season_type = 'Regular Season'
and g1.game_date >= Convert(datetime, '2017-11-02'))a
group by ATS_Status, team_id
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…