select g.gameid, h.teamname home,
h.email hemail,
v.teamname visitor,
v.email vemail
from games g,
join teams v on v.id = g.visitorid
join teams h on h.id = g.homeid
where (g.gamenum = 221)
I need the teamname and email fields from the teams table for the two teams
listed in a game in fields homeid and visitorid. dame.gameid is not really needed.