Hi, very new at trying to use Access SQL, need to compare 2 tables of employees, say "Fac" and "Hr", where the Badge Number is the primary key, and look for mismatched pay rates, but only for the same 2 rows/records that are linked by key. This query showed the two tables linked at Badge Number in Design View, but if it matched a Fac hourly rate anywhere in the Hr column it would not return a difference. I tried adding a CONSTRAINT for PRIMARY KEY and fiddled with DISTINCT ROW and it didn't like my syntax. Could anyone please help me limit this query to just compare the fields in the same record/row? p.s. I don't know how to use Visual Basic either.
SELECT Fac.*, Hr.*
FROM Fac LEFT JOIN Hr ON Fac.[Hourly Rate]=Hr.[Hourly Rate]
WHERE (HR.[Hourly Rate] Is Null);
Thanks much,
Kerry
SELECT Fac.*, Hr.*
FROM Fac LEFT JOIN Hr ON Fac.[Hourly Rate]=Hr.[Hourly Rate]
WHERE (HR.[Hourly Rate] Is Null);
Thanks much,
Kerry