D
dkiernan
I have 2 tables; one field in Parts is a foreign key into Locations.
select Parts.Name, Parts.Description, Locations.Description
from Parts left join Locations on Parts.LocationID =
Locations.LocationID;
This returns MORE records than are in the Parts table to begin with.
I have 17,000 Parts records, and the query returns over 20,000 records.
My understanding is that a left join retuns all records in the left
table with matching records in the right table or blanks if there is no
matching record in the right table.
How am I ending up with *more* records?
Thanks.
select Parts.Name, Parts.Description, Locations.Description
from Parts left join Locations on Parts.LocationID =
Locations.LocationID;
This returns MORE records than are in the Parts table to begin with.
I have 17,000 Parts records, and the query returns over 20,000 records.
My understanding is that a left join retuns all records in the left
table with matching records in the right table or blanks if there is no
matching record in the right table.
How am I ending up with *more* records?
Thanks.