Hi all, I would like to use left join to join multiple tables and I am wondering whether the order of the join matters. Say proc sql;
create table t1 as
select * from A
natural left join B
natural left join C;
quit; does this code generate the same result as proc sql;
create table t1 as
select * from A
natural left join
(select * from B natural left join C);
quit; ? Or as long as the tables A, B, and C is linked by left join in this order, the result would not change? I tried the above in a small trial dataset, and I got the same table. However, when I used similar multiple natural left join with the data I worked on, I got different result. More generally, is the following correct: A left join B left join c = (A left join B) left join c = A left join (B left join c) = A left join D where D = B left join c? Thanks
... View more