UPDATE TB1 TB SET TB.DEBITED_AMT = TB.CHECK_AMOUNT WHERE EXISTS ( SELECT MASTER_ID FROM TR1 TR where TR.COATER_CODE = \'010\' AND TR.MASTER_ID = \'989778888\' AND TR.TRX