sanchez_1960
08-09-2007, 02:28 AM
I'm doing something like this:
SELECT * from people, jobs
WHERE
jobs.People_ID = people.People_ID
Thats all ok, except I want to show results where the jobs table doesn't have an associate ID in people, so technially it hasn't been assigned a person yet.
My solution to the problem was to simply list the jobs table on its own and do a secondary SQL on each printed row to look up the the people name.
Tho the overhead on this will obviously be complete un-necessary.
All I need to do is rewrite my main query so it also shows values where the two don't match up.
SELECT * from people, jobs
WHERE
jobs.People_ID = people.People_ID
Thats all ok, except I want to show results where the jobs table doesn't have an associate ID in people, so technially it hasn't been assigned a person yet.
My solution to the problem was to simply list the jobs table on its own and do a secondary SQL on each printed row to look up the the people name.
Tho the overhead on this will obviously be complete un-necessary.
All I need to do is rewrite my main query so it also shows values where the two don't match up.