Suppose I have the following query:
SELECT a.column1,
a.column2,
b.column3
FROM table1 a
JOIN table2 b
ON a.column1 = b.column2
AND a.column2 = "value"
AND b.column3 = "other value"
Why would one ever use a WHERE when filtering the values rather than another AND, i.e.
SELECT a.column1,
a.column2,
b.column3
FROM table1 a
JOIN table2 b
ON a.column1 = b.column2
AND a.column2 = "value"
WHERE b.column3 = "other value"
Wouldn't AND always make the query faster, as it will filter out the data before the join?