查询同一单位最高货主级别的信息

来源:互联网 发布:javascript !== 编辑:程序博客网 时间:2024/05/01 09:16
select a.CompanyId,a.CompanyFatherID from wms_clientcompany a  where not  exists(select * from wms_clientcompany  where state=0 and zjsid=1 and CompanyID=a.CompanyFatherID) and a.state=0 and a.zjsid=1  ; 
原创粉丝点击