Hi,
I'm just wondering if all of the following joins are logically equivalent, and if not, why not?
SELECT t1.x, t2.y from t1, t2 where t1.a=t2.a and t1.b=t2.b and t1.c = t2.c;
SELECT t1.x, t2.y from t1 join t2 on t1.a=t2.a where t1.b=t2.b and t1.c = t2.c;
SELECT t1.x, t2.y from t1 join t2 on t1.a=t2.a and t1.b=t2.b where t1.c = t2.c;
SELECT t1.x, t2.y from t1 join t2 on t1.a=t2.a and t1.b=t2.b and t1.c = t2.c;
I guess my real question is: does combining "where" with "on" doing something different from just having multiple conditions ANDed together with "on"?
I work with MySQL, in case that makes a difference.
Thanks,
Ben