murray83
Games Collector
- Local time
- Today, 18:56
- Joined
- Mar 31, 2017
- Messages
- 826
good evening
have a question which i hipe you clever people can help with
facts first, I have 3 tables which i wish to pull data from
i am able to inner join table 2 to table 1 but then i need data from table 3
i am pulling this using a pass through query and have searched high and low and have tried this
https://stackoverflow.com/questions/20929332/multiple-inner-join-sql-access
and have tried the steps but either says FROM is in wrong place or column ambiguously defined
here is my code help much appreciated
the following code works fine but i need the Supplier_Sku_Id as well from the table Suplier_Sku
have a question which i hipe you clever people can help with
facts first, I have 3 tables which i wish to pull data from
i am able to inner join table 2 to table 1 but then i need data from table 3
i am pulling this using a pass through query and have searched high and low and have tried this
https://stackoverflow.com/questions/20929332/multiple-inner-join-sql-access
and have tried the steps but either says FROM is in wrong place or column ambiguously defined
here is my code help much appreciated
Code:
SELECT DISTINCT
inv.Sku_Id,
inv.Description AS Short_Description,
inv.Supplier_Id,
sk.User_Def_Note_1 AS Long_Description,
ss.Supplier_Sku_Id
FROM
((Inventory inv
INNER JOIN SKU sk
ON inv.SKU_ID = sk.SKU_ID)
INNER JOIN Supplier_Sku ss
ON inv.SKU_ID = ss.SKU_ID)
WHERE Supplier_Id IS NOT NULL
the following code works fine but i need the Supplier_Sku_Id as well from the table Suplier_Sku
Code:
SELECT DISTINCT
inv.Sku_Id,
inv.Description AS Short_Description,
inv.Supplier_Id,
sk.User_Def_Note_1 AS Long_Description
FROM
Inventory inv
INNER JOIN SKU sk
on inv.SKU_ID = sk.SKU_ID
WHERE Supplier_Id IS NOT NULL
ORDER BY Supplier_Id ASC