I have a simple database of two tables - parents and children.
I have written a query with a type 2 join so that all parents and related children are returned.
However the results omitted two parents that did not have any children.
What have I done wrong and what should I have done?
Thanks
Code:
SELECT etr.Name, etr.[Organisation Code], etr.[National Grouping], ets.Name, ets.[Organisation Code], ets.[Close Date], ets.HospitalFROM etr LEFT JOIN ets ON etr.[Organisation Code] = ets.[Parent Organisation Code]
WHERE (((etr.[National Grouping])="y62") AND ((ets.[Close Date]) Is Null) AND ((ets.Hospital)=True) AND ((etr.[Close Date]) Is Null))
ORDER BY etr.Name;