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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works great. It only took 0.5' on my PIII 866 machine.
Best Regard
Jerry