Solved

Outer Join Showing Too Many Records

Posted on 2006-11-06
3
271 Views
Last Modified: 2012-08-13
I am working with a query that joins two tables with an outer join

Table 1 has 9174 records.  When I join Table 1 to Table 2 with an outer join (inlude ALL records from table 1 and only those records from table 2 where the joined fields are equal)

For some reason when I run the query i get 9187 records back. (I should only be getting 9174 records back based on how I setup the query)


Any thoughts?

Thanks

Cory
0
Comment
Question by:cstraim
3 Comments
 
LVL 15

Expert Comment

by:Simon Ball
ID: 17881667
how many do you get back with an inner join, and how many records are there in table 2?
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 250 total points
ID: 17881819
you've got 13 duplicate values in the field that you're joining...in table 2
0
 

Author Comment

by:cstraim
ID: 17885053
Thank you ..i did a comparison and saw that there were duplicates I was unaware of.  Thanks for your help.  I should have comared the tables to begin with!!

Cory
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 7 35
Field Properties in the DB Vs Bound Control on the form 9 33
Dlookup MSACCESS 5 25
Microsoft Access Reports & Sub Reports 3 14
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

809 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