kevinforbes
Programmer
Hi All,
Quick question, probably an easy answer but my brain thinks it today is Monday...
Here is my query:
SELECT blah
FROM tbl1
INNER JOIN tbl2 ON
tbl1.id = tbl2.id
WHERE tbl1.id = 'blah' AND tbl2.other_id = 'other_blah'
Works fine except when tbl2.other_id doesn't match the criteria.
I always want to return a record, wether or not tbl2 is matched.
Thanks,
Kev
Quick question, probably an easy answer but my brain thinks it today is Monday...
Here is my query:
SELECT blah
FROM tbl1
INNER JOIN tbl2 ON
tbl1.id = tbl2.id
WHERE tbl1.id = 'blah' AND tbl2.other_id = 'other_blah'
Works fine except when tbl2.other_id doesn't match the criteria.
I always want to return a record, wether or not tbl2 is matched.
Thanks,
Kev