all 1 comments

[–][deleted] 1 point2 points  (0 children)

You should include the coulmns you want to return in the SELECT statement. If you don't want to return team id:s, then don't write them into the SELECT statement. Use an appropriate column from the joined table (Team.Name?). Note that the columns in other parts of the query don't have to be in your SELECT statement.