Postgres выберите, кроме
SELECT columns_a FROM table_a EXCEPT SELECT columns_b FROM table_b;
Graceful Goose
SELECT columns_a FROM table_a EXCEPT SELECT columns_b FROM table_b;