PS Query & SQL

 View Only
  • 1.  Query Masking - Hierarchy JOIN vs non Hierarchy JOIN

    Posted 02-13-2025 09:30 AM

    Good morning,

    As I  continue my "quest" to get Oracle to get fixes on the Query Masking issues we have been having, I was told to do the following below. After I asked for clarifications, the instruction were even less clear for me.

    I was asked to do :   as a workaround, avoiding to join two tables using HIERARCHY join in query manager will avoid the reported error.

    It's a workaround until one puts a bug fix as described under the document E-QR: Queries With Data Privacy Turned On And Left Outer Join Get "You Have Insufficient Access To Retrieve This Data". (Doc ID 3060446.1)

    We are not sure if this use case applies to our issues.  But how does one do a non-hierarchy JOIN ? I found this setting under "Preferences" of a query. Is this it ?

    Thank you



    ------------------------------
    Sofiane Benzaza
    Peoplesoft Analyst
    HEC Montreal
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------
    Alliance 2026 Registration is Open!


  • 2.  RE: Query Masking - Hierarchy JOIN vs non Hierarchy JOIN

    Posted 02-13-2025 10:51 AM

    I think they are talking about how you select your query records as you are querying. When you build queries, you often have two methods of choosing your second and subsequent records. I do most of my query from HCM, but you can do the same I'm about to mention below, from any db with any records you are familiar with.

     

    If you use Query Manager from the web:

    Hierarchy Join:  Start a new query and from the Records tab, look up and select POSITION_DATA for your first record. Now, look down the list of fields in the Position Data record, and you'll see links next to some of them for various tables. Use the link to ACTION_TABLE and select the Standard Join. Now, go over to your criteria tab and all you will see are two rows of criteria, each specifying the effective date for records A and B.

    Non-hierarchy join:  Start a new query and from the Records tab, look up and select "POSITION_DATA for your first record. Go back to the Records tab, look up "ACTION_TABLE", select "Join Record" and from the next pop-up allow a Standard Join, and then near the bottom you need to select "A – POSITION_DATA" as the record you will be joining your second table to. This will create another pop-up where it is suggesting join criteria and asking if this is what you want. Go ahead and add that criteria. Now, go to your Criteria tab. You should see three rows of criteria. The first is the effective date for your record A. The second shows how the Action field is the same from table A to table B (this is how you know it is NOT a hierarchy join). Third criteria is effective date for B.

     

    If you use App Designer it is very similar:

    The difference in selecting hierarchy join vs non-hierarchy has to do with using the little + symbol next to a field from your first table to select the second table. If you use the + symbol you will get a hierarchy join with the same results on the criteria tab as you would get from the web. If you create a new query and instead look up the second table for your query and apply criteria from the pop-up, then you get more criteria showing in the criteria tab.

     

    I don't use hierarchy joins, anymore. We've had misc, seemingly random problems with hierarchy joins over the years. The real kicker, though, was about 15 years ago, we did a major upgrade, and at go-live, I found myself re-writing hundreds of queries that suddenly malfunctioned. It was weird in that the hierarchy hadn't changed on the records, and I could re-write a hierarchy join exactly the same as the original, but the original would not run. We had some very upset end-users, and I put in a lot of midnight oil fixing these. Our non-hierarchy queries have never had issues that I can recall.

     

     

    Lynn Hutchins
    Application Development
    Information Services
    lynn.hutchins@cwu.edu

     

     

     

     




    Alliance 2026 Registration is Open!


  • 3.  RE: Query Masking - Hierarchy JOIN vs non Hierarchy JOIN

    Posted 02-14-2025 12:23 PM

    This is great information Lynn. Thorough and concise. Seems best not to use the hierarchy joins. 



    ------------------------------
    Enrique Pizana
    PeopleSoft Developer and Support Engineer
    Washington State Board for Community and Technical Colleges
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!


  • 4.  RE: Query Masking - Hierarchy JOIN vs non Hierarchy JOIN

    Posted 02-24-2025 01:21 PM

    Hi Lynn,

    I did not answer earlier as I was not going to work until this week and wow, what a detailed answer. Thank you so much for the detailed information and will go through it this week.

    Keep you posted :-)

    Best



    ------------------------------
    Sofiane Benzaza
    Peoplesoft Analyst
    HEC Montreal
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!