I'm not sure exactly how to get this.
What I have is something like this.
TableA: VisitID, PersonID1, PersonID2
TableB: PersonID, FirstName, LastName
I'd like to return Visit ID, name of PersonID1, name of personID2.
Usually I would just do a simple join, but I can't seem to get that to work
It should go something like
SELECT A.VisitID, B.FirstName+B.LastName, B.FirstName+B.LastName (this is dup, wont work)
FROM TableA A
JOIN TableB B ON TableA.PersonID1=TableB.PersonID OR TableA.PersonID2=TableB.PersonID
Thanks!