Forum Moderators: coopster
the JOBLOGS table just contains userID,Date started, date finished, jobID
the other tables contain more details about the taks or project
SELECT somefileds
FROM joblogs
INNER JOIN ON PROJECTS (joblogs.jobID=projects.jobID)
INNER JOIN ON TASKS (joblogs.jobID=tasks.taskID)
INNER JOIN ON ARCHIVE (joblogs.jobID=archive.archID)
WHERE userID='$userID'
RESULT - Should show list of taks,projects or archived jobs where my userID is present
ie:
1. Updating Site (Task)
2. Buy blank CD's (Task)
3. Redesign (Project)
4. Create Mocks (Project)
etc.
[edited by: knighty at 12:54 pm (utc) on Mar. 8, 2004]
If there is no matching record for the right table in the
ON or USING part in a LEFT JOIN, a row with all columns set to NULL is used for the right table.