UNION ALL
to combine home and away match results into a single result set, with columns for team_id, goals for, goals against, and points based on match outcomes.Teams
table to get team names.erDiagram Teams ||--o{ Matches : plays Teams { int team_id PK varchar team_name } Matches { int home_team_id PK int away_team_id PK int home_team_goals int away_team_goals }