This may be a bit elementary but I have 2 tables (A & B), related buy a foreign key called 'username'.
I want to select ALL of the records in table B that are NOT IN table A.
What'e the best way of doing this? I tried the following and had no success (pulled empty recordset).
Thanks much!!!
I want to select ALL of the records in table B that are NOT IN table A.
What'e the best way of doing this? I tried the following and had no success (pulled empty recordset).
Code:
SELECT DISTINCT(username) As Uname
FROM tbl_timesheets_excel
WHERE username NOT IN (SELECT Email FROM tbl_TimeSheetUsers)
Thanks much!!!