Link to home
Start Free TrialLog in
Avatar of Rush_2112
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
ASKER CERTIFIED SOLUTION
Avatar of ralmada
ralmada
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rush_2112
Rush_2112

ASKER

I found that this works:

AND (Manager_Filter.`Unique` NOT IN (Select `Unique` from tblLock))