First, get rid of the "SELECT *" (and never use it again 🙂). Next, explicitly SELECT the two items you desire (in addition to the other column(s) of interest - omitted here for brevity):
bradgrafelman;11033149 wrote:You'd then use t1.TeamName and t2.TeamName, respectively, for the home and away team names.
You can of course make it cleaner in the code if you'd like by using aliases... e.g. "SELECT t1.teamName homeTeamName, t2.teamName awayTemaName, ...".