ACC97: Outer Join Returns Wrong Records with ODBC Tables vs. Local TablesID: Q225422
|
You may get different results running a query that contains a WHERE clause and an outer join to another query on a local table than you get on an linked ODBC table. This happens even though the local table and the linked table contain the same data.
When the tables are local, the WHERE clause is processed before the outer join. However, when the tables are linked, the queries are combined into a single SQL statement and the WHERE clause is processed after the outer join.
To prevent this problem, install Microsoft Jet 3.51 Service Pack 2.
This problem was corrected in Microsoft Jet 3.51 Service Pack 2.
For additional information about Microsoft Jet 3.51 Service Pack 2, please see the following article in the Microsoft Knowledge Base:
Q172733 ACC97: Updated Version of Microsoft Jet 3.5 Available on MSL
Table: Table1
-----------------
Field Name: a
Data Type: Number
Field Name: b
Data Type: Text
Table: Table2
-----------------
Field Name: a
Data Type: Number
Field Name: c
Data Type: Text
Query: Query1
-------------
Field: a
Table: Table2
Field: c
Table: Table2
Criteria: "x"
Query: Query2
------------------------------
Join: Table1.[a] -> Query1.[a]
Field: a
Table: Table1
Field: b
Table: Table1
Field: c
Table: Query1
a b
-------
1 a
2 b
3 c
a b
-------
1 x
2 y
3 z
Additional query words: pra link attach attached
Keywords : kbdta
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 14, 1999