Thanks for your help so far.
Basically what I have to do is DELETE all records in TABLE A which match a specific condition AND (!!!) delete corresponding records in TABLE B.
So TABLE A looks anything like this:
TABLE A
id
name
address
...
...
And TABLE B looks anything like this:
TABLE B
id
moreinfo
moreinfo2
...
...
So if I issue a DELETE FROM 'TABLE A' WHERE condition=true I somehow have to determine which records (ids) have been deleted in order to delete corresponding records in Table B. Or is there a better way of doing it? Joining tables? Your help is more than appreciated...