No Result Set From Tables Joined with Outer Then Inner Join

Last reviewed: September 12, 1996
Article ID: Q108893
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0
  • Microsoft Query for Windows 95, version 2.0

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.

REFERENCES

"Microsoft Query User's Guide," version 1.0, Chapter 6


KBCategory: kbusage kbtool
KBSubcategory: xlquery

Additional reference words: 1.00 2.00 5.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.