What I can do is a simple shell script to automate this task, also I must to code some triggers in both tables, so when a quantity get uptdated then it will execute the shell script, so will change the other table, IF both tables are in the same server/database then I can perfom this action using just a trigger. Contact me now