Como verificar se existe um valor em outra tabela mysql

SELECT *
FROM tableB
WHERE ID NOT IN (
  SELECT ID FROM tableA
);
Nasty Nightingale