Jump to content

[SOLVED] query help


hvle

Recommended Posts

hi guys,

 

couldn't think of a single query that do this:

 

table 'team'

teamID    teamName

1            Sharks

2            Red Wings

 

table 'game'

gameId  homeTeamId    awayTeamId

100              1                    2

 

I want a query that return 1 row like this

matchId      homeTeamId    awayTeamId    homeTeamName      awayTeamName

100                  1                  2                    Sharks                Red Wings

 

Any idea?

 

 

Link to comment
https://forums.phpfreaks.com/topic/181048-solved-query-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.