日期:2014-05-17 浏览次数:20441 次
select M.cCusName ,M.cSOCode ,M.dDate,D.cInvName,D.cInvCode,D.iQuantity,D.iUnitPrice,D.iNatMoney from SO_SOMain M,SO_SODetails D where D.cSOCode = M.cSOCode GROUP BY M.cSOCode ,M.cCusName,M.dDate,D.cInvName,D.cInvCode,D.iQuantity,D.iUnitPrice,D.iNatMoney
select M.cCusName ,M.cSOCode ,M.dDate,D.cInvName,D.cInvCode,D.iQuantity,D.iUnitPrice,D.iNatMoney
from SO_SOMain M,SO_SODetails D
where D.cSOCode = M.cSOCode
GROUP BY M.cSOCode ,M.cCusName,M.dDate,D.cInvName,D.cInvCode,D.iQuantity,D.iUnitPrice,D.iNatMoney
order by M.cCusName