Using this question, I've been trying to experiment with using different types of JOINS to try to combine these two SELECT queries. They are very similar and work fine by themselves but when I try to create a third column EmpFirstName3 the query blows up. How do I successfully combine these two tables?
HTG_TechProps Table
EmpNumber | EmpFirstName
111 | Bob
222 | John
333 | Randy
HTG_TechStaffSets Table
EmpNumber | StaffSetID
CCN31 | 111
CCN11 | 222
POWW | Null
/* Techs */
SELECT
p.EmpNumber,
p.EmpFirstName AS EmpFirstName1,
t.EmpFirstName AS EmpFirstName2
FROM HTG_TechProps p
LEFT JOIN HTG_TechStaffSets s ON p.EmpNumber=s.EmpNumber
LEFT JOIN HTG_TechProps t ON t.EmpNumber=s.StaffSetID
ORDER BY p.EmpNumber
/* Staff Sets */
SELECT
p.EmpNumber,
p.EmpFirstName AS EmpFirstName1,
t.EmpFirstName AS EmpFirstName2
FROM HTG_TechProps p
LEFT JOIN HTG_TechStaffSets s ON p.EmpNumber=s.StaffSetID
LEFT JOIN HTG_TechProps t ON t.EmpNumber=s.EmpNumber
ORDER BY p.EmpNumber