I Have a requirement to compare two json files and pick the non matching item from it what query should i use in filter condition

Prapul Kumar Dongari 116 Reputation points
2021-11-11T07:37:46.937+00:00

148495-json.png148436-json2.png148484-adf.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,236 Reputation points
    2021-11-11T18:41:30.213+00:00

    Hello @Prapul Kumar Dongari and welcome to Microsoft Q&A!

    I understand you want to do a comparison, but what are you comparing to? The pictures above appear to have identical data.

    I suspect you want to do something like the below table. In this table we have 3 elements, X Y and Z. We are comparing Y and Z to X, and want to choose Y when Y is different from X, and choose Z when Z is different from X.

    X | Y | Z | choose  
    A | A | A | X  
    A | A | B | Z  
    A | B | A | Y  
    A | B | B | Y or Z  
    A | B | C | ???  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.