Hi there,
Apologies, I am a beginner at SQL, and have 2 tables I want to join.
I want to display the same field (StaffName) in the results, twice, however they should be different names. I am not sure how to achieve this.
Table: Staff
StaffNo | StaffName
001 | John
002 | Jane
003 | Bob
Table: Task
Requested |Completed
001 | 003
002 | 003
003 | 001
Expected Result:
Requested | Completed
John | Bob
Jane | Bob
Bob | John
I can only join Staff.StaffNo to Task.Requested or Task.Completed. So when I select Staff.StaffName in my query, I can only get one result.
I hope this makes sense. Happy to answer any questions.
Thank you!