多表查询中既有内连接又有左连接,该怎么写?

2024年11月29日 16:33
有1个网友回答
网友(1):

内联只能连一个
FROM DISPATCHLIST DL, DISPATCHLISTS DLS
INNER JOIN CUSTOMER C ON C.cCusCode=DL.cCusCode
LEFT OUTER JOIN SalePayVouch SPV ON DL.cCusCode=SPV.cCusCode
LEFT OUTER JOIN SalePayVouchS SPVS ON SPVS.ID=SPV.ID
LEFT OUTER JOIN AP_CLOSEBILL ACB ON DL.cCusCode =ACB.cDwCode
WHERE DL.DLID=DLS.DLID
group by c.cCusAbbName,DLS.iTaxUnitPrice
order by c.cCusAbbName