update comp_cash_sales SET  totalAmountIncludeTax=(Select ifnull(sum(amountIncludedTax),0) From comp_cash_sales_detail  where invoiceID =36),   totalTaxAmount= (Select ifnull(sum(taxAmount),0) From comp_cash_sales_detail  where invoiceID =36) where ID=36