Following Problem:
I got two tables (PK=PrimaryKey):
Table B(yes, it is B, not A. EDIT: but A does exist):
ColumnHeader_PK_A ColumnHeader_PK_B
PK_A_1 PK_B_1
PK_A_1 PK_B_2
PK_A_1 PK_B_3
PK_A_2 PK_B_1
PK_A_2 PK_B_2
table C:
ColumnHeader_PK_A ColumnHeader_PK_C
PK_A_1 PK_C_1
PK_A_1 PK_C_2
PK_A_1 PK_C_3
PK_A_1 PK_C_4
PK_A_1 PK_C_5
PK_A_2 PK_C_1
I need a result like following:
ColumnHeader_A ColumnHeader_B ColumnHeader_C
PK_A_1 PK_B_1 PK_C_1
PK_A_1 PK_B_2 PK_C_2
PK_A_1 PK_B_3 PK_C_3
PK_A_1 Null PK_C_4
PK_A_1 Null PK_C_5
PK_A_2 PK_B_1 PK_C_1
PK_A_2 PK_B_2 Null
I think my Problem is pretty simple, but I could not find a solution in nearly 12h of thinking. I work with MS Access, VBA would not be a Problem but I need SQL for Performance. there are a million rows. I just want to hang two lists on one key of another list