Hi all:
Here is the FROM portion of a query:
FROM
Events
INNER JOIN Players ON Players.plID = Events.plID
INNER JOIN Promoters ON Promoters.prID = Events.prID
INNER JOIN PlayerDetails ON PlayerDetails.plID = Players.plID
INNER JOIN Sports ON Sports.SportCode = Players.SportCode
INNER JOIN Locations ON Locations.loID = Events.loID
It is taking about 15 seconds for the results to appear. When I remove
INNER JOIN PlayerDetails ON PlayerDetails.plID = Players.plID
the time drops down to about 1 second.
PlayerDetails has about 40,000 records and Players has about 20,000 records. Both tables are indexed on "plID' and both have primary keys.
Is there anything else I can do to speed the results up or due to the size of both tables, is this the best it is????
Thank you!