evergreean43
Technical User
I have a table called Jobs with job information.
I have two feeder tables with one called Persons (workers names) and Technology(with technology listing) where each Person has to have a Technology if a Person is assigned a Job.
But not every job will have a Person/Technology assignment.
Some jobs have no Person/Technology assignment and some do..
My Tables in Access 2000 with example values:
To tie everything together I use an Intersection table which uses Jobs foreign key and
the feeder table values to track Jobs and who has worked on the job and what technology they use.
Not all of the Jobs have Persons/Technolody so I use a left join to fetch Job info and Intersection
table info so I can get all Jobs with and without Person/Technology info.
This works with no problem:
But I need to fetch the feeder tables into my results.
This will combine the feeder tables together using the intersection table but doesnt include the
Jobs table:
Here is my attempt to include all but it gives me syntax errors:
Please advise.
I have two feeder tables with one called Persons (workers names) and Technology(with technology listing) where each Person has to have a Technology if a Person is assigned a Job.
But not every job will have a Person/Technology assignment.
Some jobs have no Person/Technology assignment and some do..
My Tables in Access 2000 with example values:
Code:
Jobs Persons
job_id jobName person_id personName
1 First name 1 Jones
2 Another job 2 Smith
3 title of job 3 Carson
4 next job here 4 Miller
5 main job
Technology IntersectionTable
tech_id techName job_id person_id tech_id
1 Cold Fusion 2 3 2
2 Visual Basic 3 1 3
3 Perl 3 3 2
4 PHP 5 2 1
To tie everything together I use an Intersection table which uses Jobs foreign key and
the feeder table values to track Jobs and who has worked on the job and what technology they use.
Not all of the Jobs have Persons/Technolody so I use a left join to fetch Job info and Intersection
table info so I can get all Jobs with and without Person/Technology info.
This works with no problem:
Code:
SELECT *
FROM jobs
left JOIN intersectionTable
ON jobs.job_id = intersectionTable.job_id
This will combine the feeder tables together using the intersection table but doesnt include the
Jobs table:
Code:
SELECT *
FROM technology
INNER JOIN (persons
INNER JOIN intersectionTable
ON persons.person_id = intersectionTable.person_id)
ON technology.tech_id = intersectionTable.tech_id
Here is my attempt to include all but it gives me syntax errors:
Code:
SELECT *
FROM jobs
LEFT JOIN intersectionTable
ON jobs.job_id = intersectionTable.job_id
(SELECT *
FROM technology
INNER JOIN (persons
INNER JOIN intersectionTable
ON persons.person_id = intersectionTable.person_id)
ON technology.tech_id = intersectionTable.tech_id)
Please advise.