cara memilih hanya id di mana tidak ada di kolom mysql
SELECT * FROM Table1 WHERE Table1.principal NOT IN (SELECT principal FROM table2)
Amused Antelope
SELECT * FROM Table1 WHERE Table1.principal NOT IN (SELECT principal FROM table2)