I have 2 tables JObs id,description,name TEST id,jobid I have created the query:
SELECT jobs.id,jobs.name,jobs.country,jobs.description,test.id,test.jobid
FROM jobs,test
WHERE jobs.userid='10'
AND
GROUP BY jobs.id
It echos me all jobs but test id is in all 1
If I make it where jobs.id=test.jobid
the result is known.
How Can I print all jobs where test.jobid
is equal to job.id
and jobs that don't have a test.jobid