SELECT
team_id,
result,
year,
MIN(CONCAT(year,week)) as StartDate,
MAX(CONCAT(year,week)) as EndDate,
COUNT(*) as Games
SELECT
team_id,
result,
year,
MIN(CONCAT(year,week)) as StartDate,
MAX(CONCAT(year,week)) as EndDate,
COUNT(*) as Games