Advertisement

06.17.2008 at 06:17AM PDT, ID: 23491344
[x]
Attachment Details

Comparing Two Large Tables in Microsoft Access 97

Asked by MeridianManagement in Databases Miscellaneous, MySQL, SQL Server 2005

I have two tables that both have a field that represents a unique ID. Field 1 of the first table and Field 14 of the second table. Ultimately, I was trying to get a list from the Eligible table that didn't exist in the "Enrolled" table. What am I doing wrong?

I created the report in design view, then I modified the SQL as below.

The result is that my program is freezing up. I'm using Microsoft Access 97. I don't know if my query works or if it's just too slow that I will never see the query run as both tables are 20,000 to 30,000 records. Any ideas would help!Start Free Trial
1:
2:
3:
4:
5:
SELECT Eligible.Field14
FROM Eligible
WHERE Eligible.Field14 NOT IN
   (SELECT Enrolled.Field1
    FROM Enrolled);
[+][-]06.17.2008 at 07:01AM PDT, ID: 21803103

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.17.2008 at 07:07AM PDT, ID: 21803172

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Databases Miscellaneous, MySQL, SQL Server 2005
Sign Up Now!
Solution Provided By: virmaior
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628