Gebruik left join om de personen zonder voertuigen te achterhalen
Select distinct People.id
From People
LEFT JOIN Vehicles on People.id=Vehicles.person_id
where Vehicles.person_id is NULL
Gebruik left join om de personen zonder voertuigen te achterhalen
Select distinct People.id
From People
LEFT JOIN Vehicles on People.id=Vehicles.person_id
where Vehicles.person_id is NULL