Delete data associated with two tables
delete
from tableA
where exists
(
select 1
from tableB
Where tableA.id = tableB.id
)
Delete data associated with two tables
delete
from tableA
where exists
(
select 1
from tableB
Where tableA.id = tableB.id
)