UPDATE `comp_acc_det` SET `amountdr` = amountdr +0, `amountcr` = amountcr +3, `total` = amountdr - amountcr, `updatedBy` = '50' WHERE `companyID` =  '103' AND `acctID` =  '28825' AND `year` =  '2014' AND `period` =  '9'