I am trying to combine some data from two tables, but in multiple columns. here is an example:
Source table
ID | Product Description | AAAA | BBBB |
Table2 table
ID | Text | ID1 | ID2 | ID3 |
where ID1, ID2 and ID3 in Table 2 are identifiers from the Source table
I would like to make a query that gives the results:
Table2.Text,
Source.Desc(ID1),
Source.AAAA(ID1),
Source.Desc(ID2),
Source.AAAA(ID2),
Source.Desc(ID3),
Source.AAAA(ID3)
I would suggest that this will be a union, but I can't get the syntax right ... or am I better off with Union?
source
share