Possible Duplicates:
Difference between “and” and “where” in joins
In MySQL queries, why use join instead of where?
What is the difference between
SELECT *
from T1
JOIN T2 ON T1.X = T2.X
AND T1.Y = T2.Y
and
SELECT *
from T1
JOIN T2 ON T1.X = T2.X
WHERE T1.Y = T2.Y
?