Verwenden Sie Left Join, um die Personen ohne Fahrzeuge herauszufinden
Select distinct People.id
From People
LEFT JOIN Vehicles on People.id=Vehicles.person_id
where Vehicles.person_id is NULL
Verwenden Sie Left Join, um die Personen ohne Fahrzeuge herauszufinden
Select distinct People.id
From People
LEFT JOIN Vehicles on People.id=Vehicles.person_id
where Vehicles.person_id is NULL