I am trying to compare tables and it is comparing within the table in addition to the NEW and the OLD table. For example, a family is listed in the tables like this:
NEW table
subsc_num last_name
123456789 hubert
123456789 hubert
123456789 smith
OLD table
subsc_num last_name
123456789 hubert
123456789 hubert
123456789 smith
The below query pulls the "smith" record since it looks at the last name within the tables. How can I get this query to pull when they two tables don't match?
SELECT DISTINCTROW NEW.*
FROM NEW INNER JOIN OLD ON NEW.SUBSC_NUM = OLD.SUBSC_NUM
WHERE (((NEW.LAST_NAME)<>[OLD]![LAST_NAME]));
Please help. Thank you.
NEW table
subsc_num last_name
123456789 hubert
123456789 hubert
123456789 smith
OLD table
subsc_num last_name
123456789 hubert
123456789 hubert
123456789 smith
The below query pulls the "smith" record since it looks at the last name within the tables. How can I get this query to pull when they two tables don't match?
SELECT DISTINCTROW NEW.*
FROM NEW INNER JOIN OLD ON NEW.SUBSC_NUM = OLD.SUBSC_NUM
WHERE (((NEW.LAST_NAME)<>[OLD]![LAST_NAME]));
Please help. Thank you.