Hi -
I am creating an Unmatched query, and the field in common on the two tables is email address.
However, on one table, the address is kept in full ("JohnSmith@abc.com"). On the other table, address is kept without the domain name ("JohnSmith").
Can I write my query around this? Is there a way to strip everything from the "@" on during the query?
My query now (which doesn't work, because it compares the two unequal fields) is:
Accounts is the table without domain name; STAFF is the table with domain name.
Thanks in advance for any help.
Lori
I am creating an Unmatched query, and the field in common on the two tables is email address.
However, on one table, the address is kept in full ("JohnSmith@abc.com"). On the other table, address is kept without the domain name ("JohnSmith").
Can I write my query around this? Is there a way to strip everything from the "@" on during the query?
My query now (which doesn't work, because it compares the two unequal fields) is:
Code:
SELECT Accounts.ID, Accounts.username
FROM Accounts LEFT JOIN STAFF ON Accounts.username = STAFF.email
WHERE (((STAFF.email) Is Null));
Thanks in advance for any help.
Lori