M
March
Hi All,
I want to create SQL Statement to get unmatched record(s) from two tables.
Here are the example of the tables:
TB1
===
Field1 Field2 Field3 Field4
==== ===== ===== =====
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
4/8/2008 AC1 BB B1
TB2
===
Field1 Field2 Field3 Field4
==== ===== ===== =====
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
4/8/2008 AC2 BB B1
I could use "INNER JOIN" to get
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
from both tables.
My question is I want to get
4/8/2008 AC1 BB B1 from TB1
AND
4/8/2008 AC2 BB B1 from TB2
by joining both tables.
I know that I need to use "OUTER JOIN", however in Microsoft Access doesn't
support to use the key word. I try "LEFT JOIN" and "RIGHT JOIN" but I could
not get the record(s) I want. Also I use VBA in MS Access to write the code.
Please give me suggestion.
Thank you,
March
I want to create SQL Statement to get unmatched record(s) from two tables.
Here are the example of the tables:
TB1
===
Field1 Field2 Field3 Field4
==== ===== ===== =====
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
4/8/2008 AC1 BB B1
TB2
===
Field1 Field2 Field3 Field4
==== ===== ===== =====
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
4/8/2008 AC2 BB B1
I could use "INNER JOIN" to get
4/8/2008 AC1 AA A1
4/8/2008 AC2 AA A1
from both tables.
My question is I want to get
4/8/2008 AC1 BB B1 from TB1
AND
4/8/2008 AC2 BB B1 from TB2
by joining both tables.
I know that I need to use "OUTER JOIN", however in Microsoft Access doesn't
support to use the key word. I try "LEFT JOIN" and "RIGHT JOIN" but I could
not get the record(s) I want. Also I use VBA in MS Access to write the code.
Please give me suggestion.
Thank you,
March