I am doing an assignment for class. My SQL works and I get the expected return. However I was talking to a person and he said that you can speed up DB searches by using "ON" in the "FROM" clause. His explanation was that the "WHERE" clause eliminates data after the pull while the "FROM" clause eliminates data before the pull.
Here is my SQL that works
SELECT ProductID, ProductName
FROM Products
WHERE Discontinued = False
ORDER BY ProductName;
This is what I have tried but it produces a syntax error in Access
SELECT ProductID, ProductName
FROM Products ON Discontinued = False
ORDER BY ProductName;
Discontinued is a checkbox. I do realize the for the small DBs we work with in class it is not a big deal. But I would like to have a better understanding of optimizing query's for production use.