我正在调试一些代码并遇到一段代码,其中左连接没有ON条件。我想知道这是什么结果?
SELECT s.vchAccountNumber,
s.vchAnnualIncome,
s.vchEstimatedLiquidNetWorth,
s.vchEstimatedNetWorth
FROM dbo.Suitability s
LEFT JOIN dbo.NFNameAddr_Cust nf WITH (NOLOCK)
INNER JOIN dbo.SuitabilityRegTypeExclusions rt WITH (NOLOCK)
ON nf.vchRegType = rt.vchRegTypeCode
ON s.vchAccountNumber = nf.vchAccountNumber
LEFT JOIN #CAWInfo c
ON s.vchAccountNumber = c.vchAccountNumber
WHERE c.vchAccountNumber IS NULL