coachID and teamCoach contain the same data but have different column names. I'm having trouble joining them as a result. What can I do?
SELECT tblCoaches.coachID AS "Coach ID",
tblCoaches.coachName AS "Coach Name",
tblCoaches.coachCity AS "Coach City",
tblTeams.teamName AS "Team Name"
FROM tblCoaches
INNER JOIN tblTeams ON **tblCoaches.coachID = tblTeams.teamCoach**
AND (coachID IN (SELECT teamCoach FROM tblTeams))
WHERE teamIsRec IS NULL;