Hello everyone I have a little issue here. Here is my codeSELECT Car.CarType ,Car.Model ,Car.Tire ,Car.SupervisorID ,Car.ResponsibleID ,Car.Equipment ,Supervisor.SupervisorName as Supervisor ,Supervisor.SupervisorName as Responsible FROM Car Left Join Supervisor on Car.SupervisorID = Supervisor.SupervisorID Left Join Supervisor on Car.ResponsibleID = Supervisor.SupervisorID
WHERE Car.Location = @CarLocationThe problem is the supervisor and responsible columns use the same data just different IDs. How do I perform a join on the SupervisorID but still fill the ResposibleID? Most of the time they are different but there will be some instances where they are the same.Example Supervisor ID = '2' = "Maxwell Jacobs" ResponsibleID = '5' = "Jazmine Sullivan"