I have the following two tables T1 and T2.
Table T1
Id Value1
1 2
2 1
3 2
Table T2
Id Value2
1 3
2 1
4 1
I need a SQL SERVER query to return the following
Id Value1 Value2
1 2 3
2 1 1
3 2 0
4 0 1
Thanks in advance!!