|
Posted by Glenn Adams [MVP - Retail Mgmt on November 29, 2006, 2:07 pm
Please log in for more thread options I'm not familiar with MSQuery, but if it will let you insert the SQL
command directly, it would be:
select item.description, item.price, department.Name, supplier.Name
from item
left join department on item.departmentid = department.id
left join supplier on item.supplierid = supplier.id
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information.
Jason wrote:
> I am trying to write a query where the following columns are present:
>
> Item.Description
> Item.Price
> Department.Name
> Supplier.Name
>
> The problem is that when I set up the joins in MS Query, the records that
> don't have an associated supplier assigned are not returned.
>
> When I try to change the join type on Item.SupplieID-Supplier.ID, it says
> outer joins are not allowed with more than two tables in the query.
>
> Any ideas on how I can get it to return all records even if there is no
> supplier?
>
> Thanks,
>
> Jason
>
>
|