$ 0 0 Can you query on Table A?If you can query on it, you can write code to delete and append,Then automate your script