I have two tables, A & B. Table B has adjustment factors of three
types, "COMM" being one of them. I want a query that generates all
rows of table A, and those where certain fields match, I want the
value of A.PD01 to be multiplied by the the "COMM" factor.
I have the following SQL, but it only generates the records where the
fields match, not all of them.
SELECT A.DV, A.AR, A.BU, A.MCLASS, A.CLASS, [b]![PD01]*[A]![PD01] AS
PD01
FROM A LEFT JOIN B ON (A.AR = [b].AR) AND (A.DV = [b].DV) AND (A.BU =
[b].BU) AND (A.MCLASS = [b].MCL)
WHERE (([b]![NAME]="COMM"));