Hi Ofer,
Thanks for your tips!I think i already done what you mentioned.
My situation is I use a 'MS Access' frontend, it connect to a 'SQL-database'
via ODBC-connection.
The first query consist 10 tables, five of them have not more than 100
records, 2 with about 15000 records and 2 with about 70000 records. Most of
the joins between the tables is inner join( 1 to 1 relationship) and they all
have a primary-key. This query also has 4 selection criteria's.( They spread
out in four different tables) The output of the query include 15-20
fields.(One is the primary key for table-X.)
The second query is actually the same as the first-query without the
selection-criteria's. Important for second query is that for one of the
field(primary key of table X) i added the following criteria. (Not in select
from Query1). I think this affect the performance of the query.
What i already try to do is for query1, i just slect one fields as output.
But it doesn't seemed to help.
I hope the situation is clear now, and hope that anyone can help me!
Best regards,
Patrick