I have
SELECT clientReport.id
FROM clientReport
LEFT JOIN report02 ON (report02.id = clientReport.id)
WHERE report02.id is null;
that does the equivalent of
SELECT clientReport.id
WHERE clientReport.rowNumber NOT EXISTS (
SELECT clientReport.rowNumber FROM report02, clientReport
WHERE report02.id=clientReport.id);
I need, presumably, a full inner join to also get mismatches in report02, not just clientReport. How do I write the join to do this?
The below should work.
It should but it doesn’t (as MySQL does not currently support
FULL OUTER JOIN.)This is more likely to work: