S
Syed Zeeshan Haider
Hello Everybody,
I am usin Access 2003 Pro and trying to create a rather complex union query
but don't seem to implement conditions.
Let's say I have two tables called A and B. A has column called x and B also
has a column called x. I am trying to join these two columns into one column
with following conditions:
If e is a member of both A and B then the query should include e from table
A only (because the second column calculates a value which depends on the
choice of table for picking e). I have tried all INNER JOIN, LEFT JOIN and
RIGHT JOIN but none of them have worked so far.
Here is an example of what I did:
select [A].[x]
FROM [A] INNER JOIN ON [A].[x] = .[x]
where (([A].[x]) Is Not Null) and (([A].[x])<>(.[x]))
UNION select .[x]
from ;
Any ideas what am I doing wrong here?
Any help will be highly appreciated.
Thank you,
I am usin Access 2003 Pro and trying to create a rather complex union query
but don't seem to implement conditions.
Let's say I have two tables called A and B. A has column called x and B also
has a column called x. I am trying to join these two columns into one column
with following conditions:
If e is a member of both A and B then the query should include e from table
A only (because the second column calculates a value which depends on the
choice of table for picking e). I have tried all INNER JOIN, LEFT JOIN and
RIGHT JOIN but none of them have worked so far.
Here is an example of what I did:
select [A].[x]
FROM [A] INNER JOIN ON [A].[x] = .[x]
where (([A].[x]) Is Not Null) and (([A].[x])<>(.[x]))
UNION select .[x]
from ;
Any ideas what am I doing wrong here?
Any help will be highly appreciated.
Thank you,