I'm struggling with figuring out a query that I think should be simple.
I have two tables, call them "rosters" and "lineups".
Lineups looks like this:
name, foreign_id1, foreign_id2, foreign_id3 ... foreign_id6
Where foreign_id1, foreign_id2, foreign_id3 ... foreign_id6 are all unique records in "rosters".
Example lineup records:
Example roster records:
I want the query to return a record for each row in lineups and use the foreign_ids (field crn) to get an associated item (dog_name) from the rosters table.