F
fiefie.niles
I am using MS Access.
In my query I LEFT JOIN 1 table and another query, when I do
FROM queryA LEFT JOIN tblB ON queryA.key = tblB.Key
the query runs 3-4 seconds.
When I do
FROM queryA LEFT JOIN tblB ON tblB.key = queryA.Key
the query runs 1 second.
I can also do INNER JOIN, and the order of the table also makes a
difference.
FROM queryA INNER JOIN tblB ON queryA.key = tblB.Key runs 3-4 seconds.
FROM queryA INNER JOIN tblB ON tblB.key = queryA.Key runs 1 seconds.
What is the reason why the order of the table makes a difference in
speed ?
Thank you very much.
In my query I LEFT JOIN 1 table and another query, when I do
FROM queryA LEFT JOIN tblB ON queryA.key = tblB.Key
the query runs 3-4 seconds.
When I do
FROM queryA LEFT JOIN tblB ON tblB.key = queryA.Key
the query runs 1 second.
I can also do INNER JOIN, and the order of the table also makes a
difference.
FROM queryA INNER JOIN tblB ON queryA.key = tblB.Key runs 3-4 seconds.
FROM queryA INNER JOIN tblB ON tblB.key = queryA.Key runs 1 seconds.
What is the reason why the order of the table makes a difference in
speed ?
Thank you very much.