对你的列进行group by 对数量进行count()后在sum()即可;
select PHYSIC_NAME,sum(cnt) from (select PHYSIC_NAME,COUNT(*) cnt FROM tablename group by physic_name)
select
distinct PHYSIC_NAME,
count(名称) over (partition by 名称),
sum(需要合计字段) over (partition by 名称),
from table