Hi,
I need to (sort of) combine LEFT and RIGHT JOINs, or something like that.
Better with an example:
Table1:
ID Name Value1 Check1
1 John Book Invalid
3 Mary Pencil Invalid
Table2:
ID Name Value2 Check2
2 Rick North Invalid
3 Mary South Invalid
Needed Result:
ID Name Value1 Check1 Value2 Check2
1 John Book Invalid (blank) (blank)
2 Rick (blank) (blank) North Invalid
3 Mary Pencil Invalid South Invalid
LEFT and Right JOINs will miss one record from. INNER JOIN will miss two records. I tried UNION but I don't think it is the way to go...
Can anybody help me with this?
Thanks in advance,
Gerry
PS: sorry for the poor formatting but I don't know how to paste tables in posts...
I need to (sort of) combine LEFT and RIGHT JOINs, or something like that.
Better with an example:
Table1:
ID Name Value1 Check1
1 John Book Invalid
3 Mary Pencil Invalid
Table2:
ID Name Value2 Check2
2 Rick North Invalid
3 Mary South Invalid
Needed Result:
ID Name Value1 Check1 Value2 Check2
1 John Book Invalid (blank) (blank)
2 Rick (blank) (blank) North Invalid
3 Mary Pencil Invalid South Invalid
LEFT and Right JOINs will miss one record from. INNER JOIN will miss two records. I tried UNION but I don't think it is the way to go...
Can anybody help me with this?
Thanks in advance,
Gerry
PS: sorry for the poor formatting but I don't know how to paste tables in posts...