>A RIGHT JOIN preserve the table mentioned to the right of that word, here,
>table "a", not table "b".
[quoted text clipped - 6 lines]
>>
>> Thanks!
Sorry, I meant that.... I have re-arranged this so many times... but the
point is the same... it doesn't work.
Michel Walsh - 13 Nov 2007 14:13 GMT
If you remove the WHERE clause, the number of returned records is ok?
Your WHERE clause handles the NULL coming from the join (if you use : FROM
a LEFT JOIN b ON ... WHERE b.f1=something OR b.f1 IS NULL), ***but*** still
REMOVES rows with a match that are such that b.f1=something. That is why you
may look at the result WITHOUT the where clause to see if the join is the
problem, or if it is not the where clause (which is logically executed after
the join).
Hoping it may help,
Vanderghast, Access MVP
>>A RIGHT JOIN preserve the table mentioned to the right of that word, here,
>>table "a", not table "b".
[quoted text clipped - 9 lines]
> Sorry, I meant that.... I have re-arranged this so many times... but the
> point is the same... it doesn't work.