Link to home
Start Free TrialLog in
Avatar of Jerryleo
Jerryleo

asked on

MINUS (set diff.) operator in Access query

I have to retrive records from a table that are not present in another table with the same schema.  But I am working with access database and as much I know it doesn't support MINUS operator.  I use following sql query instead.

SELECT name FROM ref  WHERE not exists (SELECT name FROM glossary WHERE ref.name=glossary.name)

ref has 6571 records
glossary has 11315 records

It's extremely slow.  It took about 2'48'' to return 124 records on a PIII 866 machine.

Is there any other good way?

Thanks in advance.

Jerry
ASKER CERTIFIED SOLUTION
Avatar of nathaniel
nathaniel
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jerryleo
Jerryleo

ASKER

Thank you very much

It works great. It only took 0.5' on my PIII 866 machine.

Best Regard

Jerry