Find non-matching records

Posted on 2007-07-20
Medium Priority
Last Modified: 2008-02-20
As someone who spends a lot of time doing MIS, a great deal of my job is finding records that fit a certain criteria.  Often times it can be equally important to find the records that don't match.  This is what I am having a problem with.  I am using CR10, DB2 table MS Access table as input.  I have 2 key fields, Account number and Bank number.  I am performing an inner join where the keys match for my main report ( about 5,000 recs).  That worked out fine.  Now I want a report of all of the records on my Access table ( about 7,500 recs on table ) not on my DB2 table ( about 16 million recs  ).  I can perform a left outer join, but then I must do further machinations to get what I need.  I tried using the select expert, where the account numbers aren't equal ( still using inner join ), but I got same 5,000 or so matching recs as result.  How can I simply get non-matching outliers in such a scenario?  Thanks.
Question by:flscooter
LVL 77

Accepted Solution

peter57r earned 500 total points
ID: 19535425
Usea left outer join from the Access table to the db2 table and include the matching fields from both tables in the report.
Assuming you add record details to the detail line, suppress the detail line if the DB2 match field is not null.
LVL 101

Expert Comment

ID: 19536298
Sounds good.


Author Comment

ID: 19547590

Thanks so much, that worked like a champ.  I am sure I will use this solution more in the future.  

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

850 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