I have a project that plans to store an away team and a home team. I'm wondering if it is better to store the teams in a single array column like this:
{Harvard,Colorado}
Or create away_team and home_team columns. What are the pros and cons of each method?
It's likely that teams would need to be queried by array position on occasion (whether they are the home or away team in the array).
{Harvard, Harvard}? I assume that a team cannot play against itself. Can you forbid a value of{Harvard, Colorado, Florida}(I assume that there no games with 3 teams) Or{Hhhhhh, Ffffff, Cccccc, FFCCAA}where the names are not actual teams? Or{Harvard}? Or just{}? (a game with 0 teams!) – ypercubeᵀᴹ May 11 '16 at 18:53