I
iTISTIC
I have 3 tables I am trying to join in a query. They are as follows:
tblProducts
tblCustomerEquipment
tblEmployees
In SQL Server, this query would produce the proper result set:
SELECT tblProducts.name, tblCustomerEquipment.install_date,
tblEmployees.fullName
FROM tblProducts
LEFT JOIN tblCustomerEquipment ON tblProducts.product_id =
tblCustomerEquipment.product_id
LEFT JOIN tblEmployees ON tblCustomerEquipment.employee_id =
tblEmployees.employee_id
I have created the exact same query in the Access query designer, and
modified the joins so they are both one-to-many, but Access treats all
of the joins as INNER joins for some reason. In other words, the result
set only contains records from tblProducts that also exist in
tblCustomerEquipment that have records that exist in tblEmployees.
I am able to get the result set I want by using sub-queries for the
install_date and fullName fields but this will be bad performance wise.
Can anyone help me?
tblProducts
tblCustomerEquipment
tblEmployees
In SQL Server, this query would produce the proper result set:
SELECT tblProducts.name, tblCustomerEquipment.install_date,
tblEmployees.fullName
FROM tblProducts
LEFT JOIN tblCustomerEquipment ON tblProducts.product_id =
tblCustomerEquipment.product_id
LEFT JOIN tblEmployees ON tblCustomerEquipment.employee_id =
tblEmployees.employee_id
I have created the exact same query in the Access query designer, and
modified the joins so they are both one-to-many, but Access treats all
of the joins as INNER joins for some reason. In other words, the result
set only contains records from tblProducts that also exist in
tblCustomerEquipment that have records that exist in tblEmployees.
I am able to get the result set I want by using sub-queries for the
install_date and fullName fields but this will be bad performance wise.
Can anyone help me?