I have two tables, Car
table and Driver
table.
In Driver table there are name
, birthDate
, and id
.
In Car table there are regNo
, manuID
, colour
, price
, and driverID
.
THE driverID
and id
match, but there is one Driver.id
which is not in Car.driverID
How will I be able to display only the one which is not in Car table.
I tried this:
SELECT id FROM Driver JOIN Car ON Car.driverID!=Driver.id;