We're making a database of our client visit logs. One of our tables called "Cases" contains a field for "Visitors". What we are trying to convey with this field is which of us in the office went on dispatch for this case. So far so good. What is blowing my mind is that for most cases, we dispatch two or more people for each case.
Should we just use special character delimiting so that the Visitors field is like "mike,jon,sarah" ? It's completely variable how many people could go on a case, so it would be pointless to create extra columns like Visitor1, Visitor2, Visitor3, because potentially we could have a case where 10 of us go, or only 1 of us goes, who knows. Ideally we'd like to have a lookup table such as:
1 | mike
2 | jon
3 | sarah
so that we can easily just do a select all from cases where visitor is 1 in order to get all of the visits mike has done.
I've googled around for this and found several cases that are similar, but because it's not exactly the same, I'm having a hard time making that leap of connecting the dots to make it fit our case.