I have a query being used for a report and it is not returning all the rows that I want it to. Here is the sql statement:
That was generated by access's query builder with a few changes by me, but the nested joins are confusing me so I don't fully understand what it means. The main table is repairdata but it is not returning rows that have a blank field for contractID. All I'm trying to do is return fields from repairdata and a few linked fields from other tables. Does anybody know how to do this? Thanks.
Code:
SELECT repairdata.*, products.*, contract.*, customer.*
FROM Products INNER JOIN (RepairData INNER JOIN (Customer INNER JOIN Contract ON Customer.OwnerName = Contract.Owner) ON RepairData.ContractID = Contract.ContractID) ON Products.ProductID = RepairData.ProductID;
That was generated by access's query builder with a few changes by me, but the nested joins are confusing me so I don't fully understand what it means. The main table is repairdata but it is not returning rows that have a blank field for contractID. All I'm trying to do is return fields from repairdata and a few linked fields from other tables. Does anybody know how to do this? Thanks.