Skip to content
Advertisement

MS ACCESS SQL Join Subquery

I have two tables: newparts, storedparts

I insert the parts of the newparts, which are not jet in the storedparts into the storedparts:

This is working fine so far. Now the Problem: Table storedparts is getting so big that the programm is taking too Long for the join process. My solution: Just compare the newparts not to all parts of the storedparts, but just to parts that aren’t older than 4 days… I tried a subquery like this, but i can’t get it to run.

Any help is appreciated.

Advertisement

Answer

This wouldn’t be a problem if your tables have indexes.

Then I suggest you change your query to something like this as @jarlh pointed out.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement