SAP 主数据 查重常用SQL

1 客户名称重复,Z002是集团外合作伙伴

select partner,type,bpkind,bu_group,name_org1,name_org2,name_org3,name_last,name_first from but000
where name_org1 in (select name_org1 from but000 group by name_org1 having count(name_org1)>1) 
and bu_group = 'Z002' order by name_org1
活到老,学到老。
原文地址:https://www.cnblogs.com/lrzy/p/15620230.html