There are 2 transmission and car tables:
id_transmission | name -----------------+---------- 1 | trans_01 2 | trans_02 3 | trans_03 id_car | name | id_transmission // references transmission (id_transmission) --------+-------+---------------- 1 | car_1 | 1 2 | car_2 | 2 I make a request to find unused parts:
select m.name from motor as m left outer join car as c on m.id_motor = c.id_motor where c.name is null; Everything is good, I get exactly the unused parts. But when I change where to and make this request:
select t.name from transmission as t left outer join car as c on t.id_transmission = c.id_transmission and c.name is null; That gets all the details at all.
How does it come about why in this context where and and not synonymous?