-

select max(GroupID) AS totaldivs from 2017teams, 2017leagueauto where 2017teams.TeamID=2017leagueauto.TeamID

[STOP]