>>sele a.pn ; >> from pnvendor a; >> left join inv b on a.pn = b.pn ; >> left join Table3 on b.KeyField = Table3.KeyField ; >> where [SomeCondition] >>>
join..join..on..on
) can lead to problems if you are joining 1 to 2 then 1 to 3, because the joined table will not be "seen" - so you have to do it sequentially join..on...join...on
. I actually started doing all joins sequentially because I ran into this nested issue with the view designer back in vfp3 doing a 1 to 2 and 1 to 3 join; changing the joins from nested to sequential cured the problems with this type of join and worked no differently than nested for other joins. [ changing the joins also ended my relationship with the view designer :) ]