Cómo verificar si existe un valor en otra tabla mysql

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