Check out example codes for "postgresql not in alternative". It will help you in understanding the concepts better.

Code Example 1

SELECT  l.id, l.value
FROM    t_left l
LEFT JOIN
        t_right r
ON      r.value = l.value
WHERE   r.value IS NULL

Learn ReactJs, React Native from akashmittal.com