No Result Set From Tables Joined with Outer Then Inner Join
Article ID: 108893
Article Last Modified on 8/15/2005
APPLIES TO
- Microsoft Excel 95 Standard Edition
- Microsoft Excel 5.0 Standard Edition
- Microsoft Query 2000
This article was previously published under Q108893
SYMPTOMS
In Microsoft Query, when you create a query that contains two tables that
are joined with an outer join, followed by an inner join, and the outer
join does not return any records from the second table, the resulting data
set will be empty (that is, the Data pane will not contain any records)
even if the inner join would normally return data.
CAUSE
When an inner join follows an outer join, the inner join attempts to
retrieve records from the result set created by the outer join. If the
result set from the outer join contains no records from the second table,
then there are no records from the second table to compare in the inner
join.
If you look at the SQL query statement that is generated by your query, you
will see that the records in the FROM clause (created by the outer join)
are the result set from which the WHERE clause (created by the inner
join) operates.
STATUS
This behavior is by design in Microsoft Query.
MORE INFORMATION
REFERENCES
"Microsoft Query User's Guide," version 1.0, Chapter 6
Additional query words: 5.00 MSQuery
Keywords: KB108893