SQL去重统计:
select count(t.mng_dept_id),count(t.mng_dept_name),count(distinct t.mng_root_dept_id),count(distinct t.mng_root_dept_name) from zp_mng_root_name t
SQL去重统计:
select count(t.mng_dept_id),count(t.mng_dept_name),count(distinct t.mng_root_dept_id),count(distinct t.mng_root_dept_name) from zp_mng_root_name t