Si certo mi sono sbagliato io... serve l'operatore IN

codice:
DELETE FROM carte WHERE number IN (SELECT number FROM cartedb)