A little indentation will show you better what was intended
SELECT T1.Acct# , T2.New_Acct# , T3.Pool# FROM DB.dbo.ACCT_TABLE T1 LEFT JOIN DB.dbo.CROSSREF_TABLE T2 INNER JOIN DB.dbo.POOL_TABLE T3 ON T2.Pool# = T3.Pool# ON T1.Acct# = T2.Prev_Acct#
This is a valid syntax that forces the join order a bit. Basically, it only queries the entries in table T2, which are also in table T3, and then left them joining T1. I do not like it personally, as it is confusing for the service. I would prefer a view because I find it much clearer and much easier to change when I need to perform maintenance after six months:
SELECT T1.Acct# , T2.New_Acct# , T3.Pool# FROM DB.dbo.ACCT_TABLE T1 LEFT JOIN (select T2.New_Acct#, T3.Pool# FROM DB.dbo.CROSSREF_TABLE T2 INNER JOIN DB.dbo.POOL_TABLE T3 ON T2.Pool# = T3.Pool#) T4 ON T1.Acct# = T4.Prev_Acct#
Hlgem source share