Hi, Im trying to write a query that will join one table to another table in a many to one relationship.
In TableA I have three columns... 'idnumber1', 'idnumber2', 'idnumber3'.
Some rows in tableA will have all three columns populated, others only one or two columns. For some reason some assets have been assigned multiple id numbers.
I want to join this table to a table that contains further information related to the idnumber.
TableB has an 'idnumber' column and a 'description' column.
So far my query looks like this...
SELECT TABLEA.ID1, TABLEB.DESC
FROM TABLEA LEFT JOIN TABLEB ON TABLEA.ID1 = TABLEB.IDNUMBER
LEFT JOIN TABLEA.1D2 = TABLEB.IDNUMBER;
Am I missing a comma or an 'AND' in between the two join statements?
I can't seem to get the syntax correct.
Any help would be appreciated,
Thanks.