I have an excel with VBA program which connects to MySQL database to retrieve some information. Initially, when the program loads I have the below query.
SELECT
Query:
SELECT a.* FROM Table1 a WHERE NOT EXISTS (SELECT subject FROM Table2 b WHERE a.id = b.subject)