Solved

Extracting data from one table that is not in another table

Posted on 2014-09-16
2
190 Views
Last Modified: 2014-09-16
Experts,

I am creating table10  From Table1.  However, I only want what is not in Table2 - Table9.  The unique key is claim. What would be the most efficient way to do this?
0
Comment
Question by:morinia
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 400 total points
ID: 40325503
try using a make table from a union query

select f1,f2,f3,f4
from table1 left join table2
on table1.claim=table2.claim
where table2.claim is null

union

select f1,f2,f3,f4
from table1 left join table3
on table1.claim=table3.claim
where table3.claim is null
union

...continue up to table9
0
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 100 total points
ID: 40325569
To continue Rey's thought.
After you create the union query, create a query that does a left join of table1 to the union.  Select only records where the key field in the union query is null.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Programmer 14 48
Attachment field in SQL 3 28
Access on Mouse move 5 31
Access 2007 - Create Query That Returns One Record Per Customer 4 29
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question