I have a table called users that have 2 fields that hold a userid for the Assigned_To and userid for the Created_By field. Can I join the table twice to get the full name field like below?
SELECT repairs,*,users.fullname,users.fullname AS Assigned_To
from repairs
LEFT JOIN users ON repairs.Created_By = users.userid
LEFT JOIN users ON repairs.Assigned_To= users.userid