Jump to content

can there be 2 foreign keys for a single field of a table?


devilinc

Recommended Posts

i have two tables here. one field say x of first table stores team names say denver broncos,green bay packers. now i have another table y, which has home team column as foreign key which points to x table and away team column also as foreign key which also points to same table 'X'. actually it just has to retreive team name from this x table and depending on if this team name exists in hometeam col or awayteam columnĀ  give a result of home or away for different matches. so is this type possible?

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.