K
Kirk P.
I've got this inner join query that correctly produces 8 records, each record
reporting the contents of the FLAG field in quniERRORS_COMBINED.
SELECT h.BATCH_ID,
h.PLATFORM_ID,
h.CANCEL_REQUEST_ID,
e.FLAG
FROM HEADER AS h
INNER JOIN quniERRORS_COMBINED AS e ON (h.CANCEL_REQUEST_ID = e.ID_FIELD)
AND (h.PLATFORM_ID = e.PLATFORM)
WHERE (((h.BATCH_ID)="300192"));
Doing nothing else but changing this to an outer join correctly produces 59
records, but based on the above query I would expect only 8 of them to have
something in the FLAG field. However, all 59 have something in the FLAG
field. How can this be?
SELECT h.BATCH_ID,
h.PLATFORM_ID,
h.CANCEL_REQUEST_ID,
e.FLAG
FROM HEADER AS h
LEFT JOIN quniERRORS_COMBINED AS e ON (h.CANCEL_REQUEST_ID = e.ID_FIELD)
AND (h.PLATFORM_ID = e.PLATFORM)
WHERE (((h.BATCH_ID)="300192"));
reporting the contents of the FLAG field in quniERRORS_COMBINED.
SELECT h.BATCH_ID,
h.PLATFORM_ID,
h.CANCEL_REQUEST_ID,
e.FLAG
FROM HEADER AS h
INNER JOIN quniERRORS_COMBINED AS e ON (h.CANCEL_REQUEST_ID = e.ID_FIELD)
AND (h.PLATFORM_ID = e.PLATFORM)
WHERE (((h.BATCH_ID)="300192"));
Doing nothing else but changing this to an outer join correctly produces 59
records, but based on the above query I would expect only 8 of them to have
something in the FLAG field. However, all 59 have something in the FLAG
field. How can this be?
SELECT h.BATCH_ID,
h.PLATFORM_ID,
h.CANCEL_REQUEST_ID,
e.FLAG
FROM HEADER AS h
LEFT JOIN quniERRORS_COMBINED AS e ON (h.CANCEL_REQUEST_ID = e.ID_FIELD)
AND (h.PLATFORM_ID = e.PLATFORM)
WHERE (((h.BATCH_ID)="300192"));