Check out example codes for "get record which is available in one table but not in another mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT  *
FROM    Call
WHERE   phone_number NOT IN (SELECT phone_number FROM Phone_book)

Learn ReactJs, React Native from akashmittal.com