This is surely simple, but I can't figure it out.
Basically here are the 3 tables in my query with their respective fields.
tblItems (ItemNo,Location)
tlbDescriptions (ItemNo, ItemDesc)
tblOrders (ItemNo, OrderQty)
I want to list all items with their related descriptions and list any orders associated with the items.
Here's what I have so far (in sql):
SELECT tblItems.ItemNo, tblItems.Location, tblDescription.ItemNo, tblDescription.ItemDesc
FROM tblDescriptions INNER JOIN tblItems ON tblDescriptions.ItemNo=tblItems.ItemNo
WHERE tblItems.Location = "1";
This seems to work fine, except that when I try to include the last table (tblorders) to find out which items have orders, it gives me only those items that have orders. What I want is all the items and see the ordered qty if there is for that item.
Now this is an external database so I can't change any of the tables and I have to do this in one query.
Can anyone help me on this?
TIA
Basically here are the 3 tables in my query with their respective fields.
tblItems (ItemNo,Location)
tlbDescriptions (ItemNo, ItemDesc)
tblOrders (ItemNo, OrderQty)
I want to list all items with their related descriptions and list any orders associated with the items.
Here's what I have so far (in sql):
SELECT tblItems.ItemNo, tblItems.Location, tblDescription.ItemNo, tblDescription.ItemDesc
FROM tblDescriptions INNER JOIN tblItems ON tblDescriptions.ItemNo=tblItems.ItemNo
WHERE tblItems.Location = "1";
This seems to work fine, except that when I try to include the last table (tblorders) to find out which items have orders, it gives me only those items that have orders. What I want is all the items and see the ordered qty if there is for that item.
Now this is an external database so I can't change any of the tables and I have to do this in one query.
Can anyone help me on this?
TIA