We help IT Professionals succeed at work.

Outer Join Showing Too Many Records

cstraim
cstraim asked
on
Medium Priority
291 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
Comment
Watch Question

Simon BallChief information Officer

Commented:
how many do you get back with an inner join, and how many records are there in table 2?
Top Expert 2006
Commented:
you've got 13 duplicate values in the field that you're joining...in table 2

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.