| Is it possible to make a join on a query, and not include the rows
| where the joined feilds are equal?
select t1.*, t2.*
from
table1 t1
left join
table2 t2
on
t1.fieldA = t2.fieldA
where
t2.fieldA is Null
UNION ALL
select t1.*, t2.*
from
table1 t1
right join
table2 t2
on
t1.fieldA = t2.fieldA
where
t1.fieldA is Null
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.