I\'ve got two postgresql tables:
table name column names ----------- ------------------------ login_log
A.) The command is NOT EXISTS, you're missing the 'S'.
B.) Use NOT IN instead
SELECT ip FROM login_log WHERE ip NOT IN ( SELECT ip FROM ip_location ) ;