How to compare attributes in different entities?

Hello

I would compare/check that a number of attributes in an entity is identical to another set of attributes in another entity. The attribute type is text.
How is the best way to do this?

Thank you!

/ Robert

Hi Robert,.

The easiest way is to use the ExistsScope function.
So, for example, imagine two sets of features, "employee" and "personnel file" (there may be several cases of employees and in many cases staff records). Suppose that two of these entities are global (i.e. they have no direct relationship between them).

I'm not sure why you want to compare the two, so here are a few examples of things to do, and you can apply depending on what is most relevant for you.

First of all, you can write a Boolean value which essentially confirms if an employee has a folder:

the employee has a personal best if:
.. ExistsScope (personnel records)
.. .the employee name = the name of the recording of personnel
... Home office employee of .the = the registration of personnel office

It's just a simple Boolean which will confirm that there is at least one instance of personal record that matches his name & Office at home. If that's what you have to do is by far the easiest way to achieve this in the OPA. Here's a useful article that goes into details: http://docs.oracle.com/html/E27987_01/Content/Reference/Rule%20function%20examples/Entity_and_relationship_functions.htm

Often, however, it is useful to "corresponds to an instance of entity to another" and then run rules on the instance of "corresponding"...
For example, once the personal file of the employee has been identified, it can be useful to run than some of the more detailed rules. You can create a relationship suspected between the employee and the recording of personnel and call it "personal employee record.

For example:

personal best is a member of the personnel file of the employee if:
.. employee name = the name of the recording of personnel
.. The employee's Home Office = the registration of personnel office

Then once you have this relationship, you can then later use this rules:

the employee must be encouraged if
.. ForScope (personal record of the employee)
... of personal .the record rating > 80

This is particularly useful if you have a large number of instances. The comparison will be only once to create the relationship deducted and not whenever you want to reason about "staff of the employee record.

More info on alleged here relationships:
http://docs.Oracle.com/HTML/E27987_01/content/rules%20using%20entity%20instances/Write_rules_infer_relationships_entities.htm

I hope this helps, after back if you have further questions.
See you soon,.
Ben

Tags: Oracle Applications

Similar Questions

  • How to compare date in different tables?

    I have 2 tables with the same structure

    create table (Atb)

    col1 char (5),

    col2 char (5),

    COL3 char (5),

    date of sign_date);

    create table (Btb)

    col1 char (5),

    col2 char (5),

    COL3 char (5),

    date of vote_date);

    the data in the Atb and Btb tables are the same for the 3 columns col1, col2 and col3. How can I compare the sign_date and the vote_date?

    Thank you!

    Thanks Frank. the answer solves my problem!

  • How to compare two different backgrounds

    Can one tell me please how to compare two circles as DEVL test?

    I don't know how to compare a project (like DEVL test) but I want to see all the changes in all the objects between two different backgrounds.

    Please help me.
    Thank you.

    use AppDesigner, navigate to tools / compare and report / database

    The target DB access code,
    Press Options
    comparison of Goto tab options & select compare Type = database

  • How to compare the 2 versions of the same document in Pages?

    How to compare the 2 versions of the same document on Pages?

    There is no OS X Visual tool which can open two Pages document and show the differences between them - other than the human eye.

    What information are you interested in identify as different between the two documents? What specific version of Pages?

  • How to compare two files to see the differences in the content?

    How to compare two files (one word and a single pdf) to see if the files are identical without having read all 7 pages?

    Thank you

    You cannot compare files of different nature. If you convert the Word file to PDF, you can then compare the two files in Acrobat.

  • How to compare the original value of table size and the changed value

    juice I took a table and then took the function of the size of the array so that it shows me the number of the elements present in it. so it'll be the original table size value. If the items in the table even changes another value, then I want to compare the original table size value and the value of table size has changed. How to compare... Please help me. you are looking for a possible solution. Thank you

    Hi stara,

    the attached picture shows the ony solution.

    It will be useful.

    Mike

  • Printer Envy 5660: How can I have a different destination after a scan

    How can I have a different destination after a scan so profile Windows my wife she will have to go to its documents and on my profile do go to my own documents

    Hi @drmarcLB,

    Welcome to the Forums of HP Support!

    I understand that you need help save the scans on different destinations on your HP Envy 5660 printer. I'd be happy to help you with this.

    Here is a document that I recommend that you try, HP printers - Scan using Full Feature HP Software (Windows 7).

    For example:

  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • How to compare two dates and find exactly

    How to compare two dates and find the exact age of the person, no one could be an age of child 2 days or a month, or other.

    I'd really appreciate if someone help o

    Concerning

    After spending 2 hours, I go out with a solution by myself, how ever the function can be customize to check if the user enters date right.

    function findAge(subjectName,fromdate, todate) {
        console.log("findAge(fromdate, todate) is called now "+subjectName+"-->"+fromdate+"-->"+todate);
        if(todate) todate= new Date(todate);
        else todate= new Date();
    
        var age= [], fromdate= new Date(fromdate),
        y= [todate.getFullYear(), fromdate.getFullYear()],
        ydiff= y[0]-y[1],
        m= [todate.getMonth(), fromdate.getMonth()],
        mdiff= m[0]-m[1],
        d= [todate.getDate(), fromdate.getDate()],
        ddiff= d[0]-d[1];
    
        if(mdiff < 0 || (mdiff=== 0 && ddiff<0))--ydiff;
        if(mdiff<0) mdiff+= 11;
        if(ddiff<0){
            fromdate.setMonth(m[1]+1, 0);
            ddiff= fromdate.getDate()-d[1]+d[0];
            --mdiff;
        }
        if(ydiff> 0) age.push(ydiff+ ' year'+(ydiff> 1? 's ':' '));
        if(mdiff> 0) age.push(mdiff+ ' month'+(mdiff> 1? 's':''));
        if(ddiff> 0) age.push(ddiff+ ' day'+(ddiff> 1? 's':''));
        if(age.length>1) age.splice(age.length-1,0,' and ');
        console.log("===============================");
        console.log("Subject age is = "+age.join(''));
        console.log(" age Day = "+ddiff);
        console.log(" age Month = "+mdiff);
        console.log(" age Year = "+ydiff);
        console.log("===============================");
        var subjectAGE =  age.join('');
    
    }
    

    peardox Thanks for the reply

  • How to compare installed Windows with a disk

    How to compare Windows with a DVD disc and product installed?

    Me once again.
    Just read the error 0xC004F063 code indicates that the license service is not in the BIOS of the computer, the required license. This occurs when the parts have been replaced. Here, you should try an activation of the phone.

    See you soon
    Julia

  • Case-sensitive disks not supported? How can I choose a different volume?

    How can I choose a different volume to install creative cloud?

    Yes, you can not use a case-sensitive, Adobe error "Unsupported of disks case-sensitive" or a similar setup error. Mac OS

  • HOW TO COMPARE THE REGULAR TEACHER VS VERSIONS?

    HOW TO COMPARE THE REGULAR TEACHER VS VERSIONS?

    Thank you

    An educational version of Photoshop Elements are totally same (feature wise) than the regular commercial versions. So, it is unnecessary to compare.

  • How can I open 2 different pdf files and show them separately on 2 different monitors?

    How can I open 2 different pdf files and show them separately on 2 different monitors?

    Hi thomasr1953,

    You will need to uncheck 'Open documents as tabs... new' under ' Edit > Preferences > general "so that the two PDF files open in separate windows.

    Then, you can drag the second file to the second monitor.

    Kind regards

    Ana Maria

  • How to compare documents in pdf format

    How to compare documents in pdf format

    Hey deepakk40834887,

    It is not possible to compare PDF files using the player.

    You may need to use Acrobat for the same thing.

    Reference: Acrobat Help. Compare two versions of a PDF file

    Hope that helps.

    Kind regards

    Ana Maria

  • How can I define two different emails in one form of contact?

    How can I define two different emails in one form of contact?

    To enter several e-mail address with Contact form Widgets:

    1. Click on the Options icon for the selected widget, then
    2. In the Email box, enter several emails in delimiting them with a semicolon. For example:
      [email protected];[email protected]
      

    CARI

Maybe you are looking for