I want to join a table named SALES and three copies of a table named IDENTIFIER in a chain arrangement (S -> I1 -> I2 -> I3). I tried:
FROM
SALES AS S
LEFT OUTER JOIN IDENTIFIER AS I1 ON S.FI_IDENTID = I1.PI_IDENTID,
I1 LEFT OUTER JOIN IDENTIFIER AS I2 ON I1.N_IDENTCOMESUNDER = I2.PI_IDENTID,
I2 LEFT OUTER JOIN IDENTIFIER AS I3 ON I2.N_IDENTCOMESUNDER = I3.PI_IDENTID
but it gives me an "I1 table name not unique" error. . .
What is the syntax to "chain-join" tables together like this?
VBAjedi
FROM
SALES AS S
LEFT OUTER JOIN IDENTIFIER AS I1 ON S.FI_IDENTID = I1.PI_IDENTID,
I1 LEFT OUTER JOIN IDENTIFIER AS I2 ON I1.N_IDENTCOMESUNDER = I2.PI_IDENTID,
I2 LEFT OUTER JOIN IDENTIFIER AS I3 ON I2.N_IDENTCOMESUNDER = I3.PI_IDENTID
but it gives me an "I1 table name not unique" error. . .
What is the syntax to "chain-join" tables together like this?
VBAjedi