Hi,
I am having a hard time wrapping my head around this Query. I need to be able to explain in plain english what it is doing.
Code:
UPDATE [a Cust Data]
INNER JOIN (G_N_TRANS
INNER JOIN [REF Mail NIPPS]
ON G_N_TRANS.N_P_ID = [REF Mail NIPPS].NAB)
ON [a Cust Data].NPI = G_N_TRANS.NPI_ID
SET [a Cust Data].[Mail/Retail] = "Mail"
WHERE (((
[a Cust Data].NPI) IS NOT NULL
AND (
[a Cust Data].NPI)<>"")));
I think that SQL is going to Start by JOINING the 2nd JOIN1st. So if that is TRUE then. The 2nd INNER JOIN is going to use TABLEs"REF Mail NIPPS" & "G_N_TRANS" & what is throwingme is that the FIELD NAMES are different, but the data TYPE is the same (integers).This is making smoke come outta my ears because I thought that INNER JOINS hadto be "equi JOINs"