Rush_2112
asked on
MySQL - All from one table, not if in other
I have a table called Master, with a field in it called Unique.
I have a separate table, called tblLock, also with a field called Unique (both varchar)
I want a view of all the records in Master, UNLESS the unique fields match. So the tblLock table excludes records from Master.
Thanks
I have a separate table, called tblLock, also with a field called Unique (both varchar)
I want a view of all the records in Master, UNLESS the unique fields match. So the tblLock table excludes records from Master.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
AND (Manager_Filter.`Unique` NOT IN (Select `Unique` from tblLock))