I realise my thread title is a little ambiguous. The reason for my question is that I have a query that outputs 2 columns ('EquipNum' & 'Key'). When I run this query, it probably takes about 10secs to come up with result.
I have second query that also outputs 2 columns ('AssetNum' & 'Key'). This also takes about 10secs to come up with result.
If I create a third query that outputs EquipNum & AssetNum, where query1.key = query2.key, after running for 8hrs, the query still hasn't come up for air!!!
If I convert the first 2 queries into tables and query these tables instead, it takes about 10secs to complete.
I just don't understand why it takes so long to query the 2 queries. I would have guessed that it shouldn't take more than 30secs to complete this task...10sec to run the first query, another 10secs to run the second, and then another 10secs to combine these 2 queries and extract the result, the same as if it was looking up tables.
What would be the logical explanation here?
I have second query that also outputs 2 columns ('AssetNum' & 'Key'). This also takes about 10secs to come up with result.
If I create a third query that outputs EquipNum & AssetNum, where query1.key = query2.key, after running for 8hrs, the query still hasn't come up for air!!!
If I convert the first 2 queries into tables and query these tables instead, it takes about 10secs to complete.
I just don't understand why it takes so long to query the 2 queries. I would have guessed that it shouldn't take more than 30secs to complete this task...10sec to run the first query, another 10secs to run the second, and then another 10secs to combine these 2 queries and extract the result, the same as if it was looking up tables.
What would be the logical explanation here?