Automate

 View Only
  • 1.  "OR" Operator in Studio Query Criteria

    Posted 01-05-2021 16:56

    Hi,

    I am wondering if it is possible to have an "OR" operator instead of an "AND" operator in the criteria for table-join queries. I am trying to create exception-based reporting, so I only want to see records that DON'T conform to established data quality rules. Simple example below:

    OR Operator in Criteria


    In this case, I want to query and pinpoint FERTs where the base unit of measure is not equal to "CS" OR where the product hierarchy is null, because both violate established data quality rules, but are unlikely to coincide with each other. 

    Thank you,
    Orlando



    ------------------------------
    ORLANDO APONTE | MDM Analyst
    Refresco Beverages North America, Inc. | 8134536003
    ------------------------------


  • 2.  RE: "OR" Operator in Studio Query Criteria

    Employee
    Posted 01-05-2021 19:49
    Hi Orland

    Not the way you want to do it.  You can use OR for a single field like below.  But AND is the only operator between fields.

    Please feel free to open a support ticket to request an improvement.

    For your use case, you'd have to run the query twice - once with each criteria.  You can append the results of both to get to what you want.

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: "OR" Operator in Studio Query Criteria

    Posted 01-06-2021 09:16
    Hi Sigrid, thank you for your response. We have identified approximately 30 critical data elements across 6 material tables, so running 30+ separate queries per field isn't practical in this case. I think we will have to use SE16N by table

    ------------------------------
    ORLANDO APONTE | MDM Analyst
    Refresco Beverages North America, Inc. | 8134536003
    ------------------------------