Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Merging tables with Left Join returns rows with no match

I have several tables that I need to combine.  They should merge together as chain with each table containing a smaller set of related data.  Merging the queries with a left outer join should be all ...
  • Mariusz's avatar
    6 years ago

    Hi Anonymous 

     

    My understanding is that Null is considered as value and it matches with Null value from another table where you have two Null, therefore you get two matching values per every Null row from the first table.

     

    To get the desired result you can replace null values with "*" or something else in the first or second table, this will be read as mismatched records by the engine.

    Please see the attached for reference

     

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.