Find non-matching records

Posted on 2007-07-20
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

    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 100

    Expert Comment

    Sounds good.


    Author Comment


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

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    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 …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now