What is the proper way to pull data from two tables, when I need them joined on some items, but also need the data if it only exists in one table?
Should I use:
Select a.a, b.b
from a full outer join b
on a.blah = b.blah
OR
Select a.a, b.b
from a left outer join b
on a.blah = b.blah
Union
Select a.a, b.b
from a right outer join b
on a.blah = b.blah
OR
Am I completely off base??
Thanks!
Should I use:
Select a.a, b.b
from a full outer join b
on a.blah = b.blah
OR
Select a.a, b.b
from a left outer join b
on a.blah = b.blah
Union
Select a.a, b.b
from a right outer join b
on a.blah = b.blah
OR
Am I completely off base??
Thanks!