左连接没有ON条件

时间:2015-09-15 14:13:20

标签: sql sql-server

我正在调试一些代码并遇到一段代码,其中左连接没有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 

0 个答案:

没有答案