Hai provato a fare:

codice:
DELETE FROM carte WHERE number = (SELECT number FROM cartedb)
Ciao!