Stupid question, but I couldn’t find the right search for this question and I’m having a mind block. I have a table with keys from a reference table and I want to avoid using a loop to select the records without having duplicates. I need to get Mode 1-5 joined so I can get the names without having duplicates. Please leave comments so I can clarify.
Mode(1-5) are ModeIDs
Example:
Table to Join
ID
Mode1
Mode2
Mode3
Mode4
Mode5
Reference Table
ModeID
ModeName
This is the answer to your question:
But I would suggest that there’s a problem with your DB design. You should be using a join table.