Hi all. I'm having problems doing a simple join (I think).. hope can get help here. I have 2 tables (due to other reasons I can't put the data into one single table to begin with):
Table A:
ID Year ValueA
-- ---- ------
1 2004 A
2 2004 B
2 2005 C
3 2005 D
Table B:
ID Year ValueB
-- ---- ------
2 2005 X
3 2005 Y
4 2005 Z
And I would like to return a recordset that shows something like this ("Year" is always queried on 2004 and 2005)
ID Year ValueA Value B
-- ---- ------ -------
1 2004 A (NULL)
2 2004 B (NULL)
2 2005 C X
3 2005 D Y
4 2005 (NULL) Z
Thanks in advance!
Table A:
ID Year ValueA
-- ---- ------
1 2004 A
2 2004 B
2 2005 C
3 2005 D
Table B:
ID Year ValueB
-- ---- ------
2 2005 X
3 2005 Y
4 2005 Z
And I would like to return a recordset that shows something like this ("Year" is always queried on 2004 and 2005)
ID Year ValueA Value B
-- ---- ------ -------
1 2004 A (NULL)
2 2004 B (NULL)
2 2005 C X
3 2005 D Y
4 2005 (NULL) Z
Thanks in advance!