select id,company_id,day_sum,(select sum(day_sum) from business_daly b where b.company_id = a.company_id) as sumSalary from business_daly a