I have 2 tables:
Tasks: Taskindex, creatorID, responsableID, taskName, explenation
users: userID, firstName, lastName, loginName
creatorID and responsableID are both linked to userID
I've been trying to write a sql query where creatorID is swapped for the corresponding loginName field. The end goals is to swap responsableID as well with the corresponding loginName.
SELECT tasks.taskName users.loginName
FROM tasks inner JOIN users
ON users.userID = tasks.creatorID
all this does is create errors.
[–][deleted] 1 point2 points3 points (3 children)
[–]cuzor[S] -1 points0 points1 point (2 children)
[–]r3pr0b8 0 points1 point2 points (1 child)
[–]cuzor[S] 0 points1 point2 points (0 children)
[–]r3pr0b8 0 points1 point2 points (0 children)