select task_code,component_code,operatoruser_code,sum(statistical_data) as data1
from
(
select task_code,component_code,operatoruser_code,statistical_data
from T_assessdata where task_code>' '
--and operatortime >='20110301000000' and operatortime<='20110930235959'
group by task_code,component_code,operatoruser_code,statistical_data
)a
group by task_code,component_code,operatoruser_code