I have this SQL and i am trying to join a table of people’s login names to a table of tasks that contains several user ids
SELECT Task.TaskID
,Project.Project
,Task.Task
,Task.Description
,Task.OwnerLoginID //shown as Login.UserName
,Task.SubmitterID //shown as Login.UserName
,Task.IsVisible
FROM Task
INNER JOIN Project ON Task.ProjectID = Project.ProjectID
/*
INNER JOIN Login ON Task.SubmitterID = Login.LoginID
INNER JOIN Login ON Task.OwnerLoginID = Login.LoginID
*/
WHERE IsVisible = 1
i get an error in the commented out lines at the bottom where am i going wrong?
try assigning alias names to the tables e.g.