Possible Duplicate:
MySQL: FULL OUTER JOIN - How do I merge one column?
Real simple question, but have completely confused myself.
Say I have the following tables:
tbl1
id - count1
a - 7
b - 4
d - 2
tbl2
id - count2
a - 3
c - 4
I want to create a table that gives the following result:
tbl_temp
id - count1 - count2
a - 7 - 3
b - 4 - null
c - null - 4
d - 2 - null
What type of join do I need to use?
Cheers,
Ben