PP> try: PP> update tmpISM,ta PP> set tmp.SUMA=tmp.SUMA-ta.SUMA PP> where (tmp.PID=ta.PID) and (tmp.PAJ=ta.PAJ)
Does update work on more than one table ? thank you for your input but i've just resolved the problem as follows (i have had forgotten the EXISTS keyword for a moment): update tmp set tmp.SUMA=tmp.SUMA-ta.SUMA where exists ( select * from tmp,ta where (tmp.PID=ta.PID) and (tmp.PAJ=ta.PAJ) ) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]