Comparing two sets of data in BPEL

Hey guys,.

There is a web service that provides (and is the source of) data, and a table that is independent of the service that contains the same data. I am writing a 11g BPEL process to synchronize the data that is returned by the service with the data in the table. I invoke the database and service adapter to receive a data collection and I need to compare two sets of data to see what is on the whole of the service data that is not in the set of data in the table, so that I can insert them into the table. I also need to compare the values of the data sets possible updates of already existing records. I don't know how to do it though. I thought using a java embedded activity to compare the two games. What is the best way to do it? Examples of code would be much appreciated.

Thank you

Bill

Hi, can not use the merge (insert or update) operation in the adapter of database for this use case?

Tags: Fusion Middleware

Similar Questions

  • With the help of & lt; CFIF & gt; to compare two sets of time

    I use < cfif > to compare two sets of time, if there is a match, and then display the link. I do something wrong because it displays is not a link even thought it is a football game. I'm using the Access database, any help is greatly appreciated!

    Here is my code:

    < CFQUERY DATASOURCE = "testDB" NAME = "gettasks" >
    SELECT id, event_name, from_date
    calendar
    where from_date > = # #dateformat(daterequest,'mm/dd/yyyy') #.
    AND from_date < = # #dateformat(daterequest,'mm/dd/yyyy') #.
    < / CFQUERY >

    < CFSET startTime = CreateTime (0,0,0) >
    < CFSET endTime = CreateTime (23,59,59) >

    < TABLE BORDER = "0" CELLPADDING = "0" CELLSPACING = "0" STYLE = "" border-collapse: collapse "WIDTH ="100% "ID ="AutoNumber1">"
    "< = CFLOOP" "#startTime #" TO = "#endTime #" INDEX = "i" STEP = "#CreateTimeSpan (0,1,0,0) #" >
    < CFOUTPUT >
    < b >
    < TD WIDTH = "6%" HEIGHT = "20" onClick = "javascript: popup ('addevent.cfm?)" addDate = #daterequest #& addTime = #TimeFormat (i, "h: mm tt") #")" VALIGN = "TOP" ALIGN = "right" BGCOLOR = "# A0AB84" CLASS = "smallWtext" STYLE = "cursor: point;" " cursor: hand; border-left: 1px solid ##EAEAEA; border-top: 1px solid ##EAEAEA; border-right-style: Double; border-right-width: 3 "> #TimeFormat (i, 'h tt') # < table >"
    < TD WIDTH = "94%" HEIGHT = "20" STYLE = "border-right: 1px solid ##EAEAEA;" border-top: 1px solid ##EAEAEA; border-bottom-style: dotted; border-bottom-width: 1 "BGCOLOR ="##FFFFEB"CLASS ="text">
    < CFLOOP QUERY = "gettasks" > <! - problem cannot match time - >
    < TimeFormat (from_date, "h tt") CFIF is ' #TimeFormat (i, 'h tt') # "> < A HREF =" editevent.cfm? id = #id # & daterequest = #daterequest #"> • #event_name # < /A > < br / > < / CFIF >
    < / CFLOOP > < table >
    < /TR >
    < b >
    < TD WIDTH = "6%" HEIGHT = "15" onClick = "window.location ='daily.cfm? disp = add & addDate = #daterequest #& addTime = #TimeFormat (i,"h: mm tt") #"; return true; "ALIGN ="right"BGCOLOR =" # A0AB84 "STYLE =" cursor: point; cursor: hand; border-left: 1px solid ##EAEAEA; border-right-style: Double; border-right-width: 3; < cfif #TimeFormat (i, 'h tt') # is "23:00" > border-bottom: 1px solid ##EAEAEA < / cfif > ' > < table >.
    < TD WIDTH = "94%" HEIGHT = "15" STYLE = "border-right: 1px solid ##EAEAEA;" "< cfif #TimeFormat (i, 'h tt') # is"23:00 "> border-bottom: 1px solid ##EAEAEA < / cfif > ' BGCOLOR ="##FFFFEB"> < table >
    < /TR >
    < / CFOUTPUT >
    < / CFLOOP >
    < /table >

    OK, let's try another direction. Keep as an object DateTime from_date and use the createodbcdate() and createodbcdatetime() functions to convert your variable daterequest to date/time objects and compares the range.


    SELECT id, event_name, from_date
    calendar
    WHERE the from_date BETWEEN #createodbcdate (daterequest) #.
    AND #createodbcdatetime(daterequest+"23:59:59") #.

    Phil

  • Burst with two sets of data

    I need assistance with BEEP. I have a report with data from two different sets of data. I need to burst this report to send to different people. The data below. The DS1 data from a database and DS2 data, on the other. I need to burst the data/DATA/DS1/DS1_ROW/REGION and/DATA/DS2/DS2_ROW/REGION, this column has the same values. When I use monitoring makes it possible to break out the report, only the data of DS1 appear in the PDF file, but I need also the data of DS2. I use Split by and deliver with/DATA/DS1/DS1_ROW/REGION. How can I do?

    Select
    USERS. KEY REGION,
    'Model' MODEL,
    TEMPLATE_FORMAT "RTF"
    "pt - BR" LOCAL,
    OUTPUT_FORMAT "PDF."
    DEL_CHANNEL "FILE"
    "C:\SampleReports\" "Parameter1",
    USERS. REGION | '-' || USERS. USER NAME | '-' || TO_CHAR (SYSDATE, 'DD-MM-RRRR') | parameter 2 '.pdf '.
    CFO. USERS
    order by USERS. REGION

    < DATA >
    < DS1 >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    DF < UF > < /UF >
    < VALOR_RESP_NUM > 13.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    < UF > GO < /UF >
    < VALOR_RESP_NUM > 6.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MS < UF > < /UF >
    < VALOR_RESP_NUM > 3.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MT < UF > < /UF >
    < VALOR_RESP_NUM > 5.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    AL < UF > < /UF >
    < VALOR_RESP_NUM > 9.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    BA < UF > < /UF >
    < VALOR_RESP_NUM > 9.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    THIS < UF > < /UF >
    < VALOR_RESP_NUM > 7.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    NORDESTE < REGION > < / REGION >
    MY < UF > < /UF >
    < VALOR_RESP_NUM > 7.0 < / VALOR_RESP_NUM >
    < / DS1_ROW >
    < DS1_ROW >
    ...
    < DS2 >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    DF < UF > < /UF >
    < VALOR_RESP_NUM > 131,0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    < UF > GO < /UF >
    < VALOR_RESP_NUM > 612.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MS < UF > < /UF >
    < VALOR_RESP_NUM > 312.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    < REGION > CENTRO-OESTE < / REGION >
    MT < UF > < /UF >
    < VALOR_RESP_NUM > 534.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    AL < UF > < /UF >
    < VALOR_RESP_NUM > 93.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    BA < UF > < /UF >
    < VALOR_RESP_NUM > 340,0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    THIS < UF > < /UF >
    < VALOR_RESP_NUM > 3430.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    < DS2_ROW >
    NORDESTE < REGION > < / REGION >
    MY < UF > < /UF >
    < VALOR_RESP_NUM > 7045.0 < / VALOR_RESP_NUM >
    < / DS2_ROW >
    ...
    < / DS2 >
    < / TEMPLATETESTE >

    Try this

    
    
    
    select UF.REGIAO as REGIAO_Q1,
    UF.UF as UF,
    RESP_VAL.VALOR_RESP_NUM as VALOR_RESP_NUM
    from DPF.SUBPERGUNTAS SUBPERGUNTAS,
    DPF.RESP_VAL RESP_VAL,
    DPF.UF UF
    where SUBPERGUNTAS.RESPOSTA ='Computadores'
    order by UF.REGIAO ASC, UF.UF ASC
    
    
    select      UF.REGIAO as REGIAO,
    UF.UF as UF,
    RESP_VAL.VALOR_RESP_NUM * 1000 as VALOR_RESP_NUM
    from DPF.RESP_VAL RESP_VAL,
    DPF.UF UF,
    DPF.SUBPERGUNTAS SUBPERGUNTAS
    where SUBPERGUNTAS.RESPOSTA ='Computadores'
    and UF.REGIAO = :REGIAO_Q1
    order by UF.REGIAO ASC, UF.UF ASC
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  • Correspondent: combining two sets of data

    Hello

    I have a source of data (A Datasource, 10,000 records) that I want to enrich with another source of data (Datasource B, 500 records) based on the common Transaction ID. So not all of the 10,000 can be enriched in any case.

    I used the processor enhance to derive records can be enriched. However, I'm kinda stuck in how can I make sure that 500 records that in fact can be fortified will be inserted in A Datasource in the form of additional fields. Merge data flow I tried, but cela add up the lines and does not have the characteristics of a true insertion.

    In the end, I still want to have 10,000 records, but 500 of them enriched by new fields.

    What is the best way to make this work properly?

    Kind regards

    Niek

    Yes it's true. Fusion configuration sets up how you export merged data. For matching records, you have several options, preferring to output only a single source, a source out most common value or the most recent value using a date field etc.

    There is an option to output the unmatched records (top box) or not.

    -Mike

  • Compare two date columns

    Hello

    I want to compare two columns of dates in a table.

    Here, I wish to confirm that the two values are the same in each record.


    Hope that make sense



    See you soon

    Sexy

    Hi, Vanessa,.

    If d1 and d2 are the two DATE columns:

    SELECT     *     -- or list whatever columns you want to see
    FROM     table_x
    WHERE     d1 != d2
    ;
    

    Displays all the lines where they are declared, but not the same thing.

    If you want to include the lines where one of them is null, but the other is not:

    SELECT     *     -- or list whatever columsn\ you want to see
    FROM     table_x
    WHERE     LNNVL (d1 = d2)
    ;
    
  • How to compare two dates and times in BPEL?

    Hi all
    I need to compare two dates and times in a switch activity, but could not find any function for her.

    My switch like this activity:

    case Date1 > date2:
    do something;
    otherwise:
    do something;

    He is not such a function in 'The functions of Date' and can not find this function to xpath.

    IBE, there is no function for a period of time to make (less one date of another?...) If this return to the data compare question).

    Thank you.

    Hello

    Logic function as more/less function can be used to compare two dates so that same comapring two numbers.

    Ex: If your variable reception contains two pieces of data such as date1 and date2, then you can use format in condition switch below.

    XpathXpression (date1) > XpathXpression (date2)

    hope this will help you.

  • need to compare two dates in IDM

    I have a requireemnt where I need to compare two fields that are dates. If the first date is greater than the other, then perform a logic 1 other execute logic 2.
    If anyone is implemeneted scenario so please let me know.

    Thank you
    Kalpana.

    Try below I have implemented similar

    Date value = date get of your method
    SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-DD hh: mm :"); ")
              
    try {}
    Date startDate = formatter.parse ("1971-01-08 00:00:01");
    If (value.before (startDate))
    Return BCFConstants.SUCCESS;
    on the other
    No matter what

    In my example, a date has been set. Thus, I have stated here. You can get both the date in the method and put a similar logic

    -nayan

  • 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

  • Stored procedure to compare two data tables

    Hello

    I want to have a stored procedure that will compare two tables data (only one column) and remove the line that is not present in the second table.

    For example.,.
    I have 2 tables called Table1 and Table2, that have the same column called ID (PK).
    Data in Table1 are 1,2,3 and data into Table2 are 1.3. When the stored procedure is running, it must compare the ID column in Table1 to ID column in Table2 and since '2' is not there in Table2, I want to remove this line from Table1.

    Thanks in advance.

    delete from table1
    where does not exist (select 1 from table2 where table2.id = table1.my_field)
    ;

  • compare two data

    Hi I want to compare two numeric values is entered by the CNC, and b. If a = b then I want to see 'RAM', if a and b, then I want to see 'JADU' in the indicator.in of the façade. I use the version of labView 13. Please suggest Best looks meyssoun Senapati

    supriyasenapati wrote:

    Mr President, my message itself does not clearly displayed. I don't know why it happened. My real message was like that-

    I want to compare two numeric values is entered by the CNC, and b. If a = b then I want to see 'RAM', if a and b, then I want to see 'JADU' in the indicator.in of the façade. I'm using labView version 13.Thanks.

    Probably you have pasted in HTML Mode and other things betweeen <> had stripped.

    To reproduce, in paragraph above was pasted below while the editing window has been implemented in HTML, this is clearly what has happened!

    Mr President, my message itself does not clearly displayed. I don't know why it happened. My real message was like that--I want to compare two numeric values is entered by the CNC, and b. If a = b then I want to see 'RAM', if a and b, then I want to see 'JADU' in the indicator.in of the façade. I'm using labView version 13.Thanks.

  • How to compare two dates

    Hello

    I have two columns (start date and end date) data type date in my page and both are optional.

    I need a validation on these date columns,

    End date should not be greater than the Start Date.

    This validation must be triggered once I click the button apply.

    Pseudocode:

    If (endate > startdate)
    {
    raise form_trigger_failure;
    }


    Can anyone suggest how/where to apply the code, if possible, please indicate the code of the sample.

    Thank you
    Mahesh

    Hello

    Please refer to the code below, and try to apply in the same way. It should solve your problem

    import java.util.Date;

    / * In LICS * /.

    If (pageContext.getParameter (Apply)! = null) / * ID of the button apply * /.
    {
    String strStartDate = pageContext.getParameter ("SearchStartDate");
    String strEndDate = pageContext.getParameter ("SearchEndDate");
    System.out.println ("Start Date:" + strStartDate);
    System.out.println ("End Date:" + strEndDate);
    If ((null! = strStartDate) & (null! = strEndDate) & (""! ")) = strStartDate) & (""! ") = strEndDate))
    {
    Day dtStartDate = new Date (strStartDate);
    Day dtEndDate = new Date (strEndDate);
    System.out.println ("Start Date:" + dtStartDate);
    System.out.println ("End Date:" + dtEndDate);

    If (dtEndDate.getTime)<>
    {
    System.out.println ("inside the date validation and error messages jet");
    OAException dateMessage = new OAException ("XXNCV", "XXNCV_Date_Message", null, null, OAException.ERROR),
    oapagecontext.putDialogMessage (dateMessage);
    oapagecontext.setForwardURLToCurrentPage (null
    true
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    OAWebBeanConstants.IGNORE_MESSAGES);
    }
    }

    Thank you best regards &,.
    REDA Papdeja

    Published by: RajPapdeja on June 15, 2010 13:12

  • How to compare two columns in Xl

    I want to compare two columns in the file of Xl. column A contains phrases and column B contains the words

    For example

    Column A                                                                       Column B                                                                           Column C

    I have an Apple and I'll eat every day Apple Apple

    I have a banana and eat weekly banana papaya

    Oranges are rich in nutritions cauliflowers Oranges

    Papaya is good for health                                               Grapes                                                                                 Papaya

    Oranges

    Lichi

    Banana

    I want to check each value of column B in each cell in column A, and if it matches then it should return the corresponding value in the result to me. Column C should Look Like as shown above.

    Can someone point me in the right direction here of what formula to use for this Xl.

    Thank you

    This is a forum for Mac OS X technologies, so here's an Applescript solution:

    1. Copy-paste the script in the Script Editor
    2. Select the cells in columns A and B
    3. Command + c to copy to the Clipboard
    4. Click on the button "run" in the Script Editor
    5. Click once in the top cell in column C where you want the data
    6. Command + v to paste

    Here are the results:

    There is no verification error here. You must select and copy to the Clipboard before the race.

    SG

    the value LstOfLsts to makeListOfLists (the Clipboard as a 'class utf8 ')

    the value theSentences to getCol1Vals (LstOfLsts)

    the value collected in getCol2Vals (LstOfLsts)

    game of theMatches to «»

    Repeat with I in collected items

    If theSentences contains I then ¬

    the value of theMatches to theMatches & i & return

    end Repeat

    Set the Clipboard for theMatches

    to getCol1Vals (LofL)

    game of col1Vals to «»

    Repeat with en LofL points

    the value col1Vals to the col1Vals & "" & i point 1

    end Repeat

    end getCol1Vals

    to getCol2Vals (LofL)

    the value col2Vals to {}

    Repeat with en LofL points

    If i's point 2 is not "" then ¬

    i copy point 2 to the end of col2Vals

    end Repeat

    return col2Vals

    end getCol2Vals

    at makeListOfLists (theTxt)

    value was to theTxt paragraphs

    the value text point of delimiters

    the value theListOfLists to {}

    Repeat with I from 1 to count was

    the value theListOfLists to the theListOfLists & {the was point i text elements}

    end Repeat

    the value point text delimiters to «»

    return theListOfLists

    end makeListOfLists

  • Is there an easy way to compare two null columns?

    I need to compare a large number of columns between the records from two tables for data conversion. I really need a comparison that returns true if: 1) the two columns are null; or (2) the two columns are not null and equal. I want him to return false if: 3) a column is set to null and the other isn't. or (4) the two columns are not null and are not equal. I'm trying to find the records which are not exact matches.

    I found the documentation for oracle-www.m-base.org/Sounds.html on the SYS_OP_MAP_NONNULL function that would do what I want, but I don't want to use it because it's an undocumented feature and my code will be in production for a period of time.

    I don't want to use a construction like this for each column that I compare:
    (
         (
              a.col is null
              and b.col is null
         )
         or (
              a.col = b.col
         )
    )
    Also, I don't know about the NVL function, but I compare columns that are entered by users, and I'm not comfortable, because these values could actually exist in the data of all NULL values.

    Hello

    Kiran says:
    where 1 = decode (coalesce(a.col,b.col), null, 1, decode (a.col, b.col, 1, 0))

    Or

    WHERE   1 = DECODE (a.col, b.col, 1)
    
  • Problem of VORowImpl - compare two lists of LINE]

    Hello world

    I have a huge problem right now, I am trying to compare two list VO with the same values, it's because a he tied to an advancedtable the xml page where the user can change some values and the other is the table values, but DB, the reason is in fact a validation to compare the original values from the DB with the tabla list and update only lines that users made changes in their values, here is my code for the better explain what I'm doing:

    {} public void saveChanges()
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getDBTransaction ();
    Row [] rows1 = getAppVO1 () .getAllRowsInRange ();
    Row [] rows2 = getDBVO1 () .getAllRowsInRange ();
    for (int i = 0; i < rows1.length; i ++) {}
    int j = i;

    To compare collections
    R1: collection of the app
    R2: collection of comics
    AppVORowImpl r1 = rows1 (AppVORowImpl);
    DBVORowImpl r2 = (DBVORowImpl) rows2 [j]; <-here in the second iteration is displayed the following error message:
    "oracle.apps.fnd.framework.OAException: java.lang.ArrayIndexOutOfBoundsException: 1.

    string variables to check if changes in the column
    String columnAPP = r1.getId (m:System.NET.SocketAddress.ToString ());
    String columnBD = r2.getId (m:System.NET.SocketAddress.ToString ());

    "If" that commits the changes
    {if (! columnAPP.Equals (columnBD))}

    SP string variable
    StringBuilder procedureCall = new StringBuilder();
    the call to SP
    try {}
    procedureCall.append ("... stored proc...");
    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement) oadbtransactionimpl.createCallableStatement (procedureCall.toString (),-1);
    oraclecallablestatement. Execute();
    getOADBTransaction () .commit ();

    } catch (SQLException sqlexception) {}
    System.Err.println ("SQL Exception:" + sqlexception.getMessage ());
    getOADBTransaction () .rollback ();
    throw OAException.wrapperException (sqlexception);
    } catch (Exception e) {}
    System.Err.println ("Exception:" + e.getMessage ());
    getOADBTransaction () .rollback ();
    throw OAException.wrapperException (e);
    }
    }

    }
    }

    the first iteration works fine, but the second and the futher shows an exception error, what can I do to make this method work?
    I'll be waiting for your answers, I really hope you can help me with this one

    Kind regards
    Mentor

    Here's the code to dump for you. Code, you should write in AmImpl and the same controller class call.

    Code AMImpl

     public void executeBothViewObjects() //Calls this method from Controller *ProcessRequest*
         {
    
            OAViewObject vo = (OAViewObject)getMainViewObjectVO1();
            OAViewObject dvo = (OAViewObject)getDBViewObjectVO1();
           if (vo != null && dvo != null)
             {
                         //1st VO
                           dvo.setWhereClauseParams(null);
                          //Set where clause if Any  dvo.setWhereClauseParam(0,xx);
                          dvo.executeQuery();   
    
                         //2nd VO
                         vo.setWhereClauseParams(null);
                          //Set where clause if Any  dvo.setWhereClauseParam(0,xx);
                         vo.executeQuery();  
    
       }
      }
    
     public void compareViewObject()   // Calling this method to compare Attribute of both View Object *Process Form Request*
      {
          OAViewObject vo = getMainViewObjectVO1();
          OAViewObject OrigVO = getDBViewObjectVO1();
    
          MainViewObjectVORowImpl rowi = null;
          DBViewObjectVORowImpl rowii = null;
    
          int fetchedRowCount = vo.getRowCount();
          int OriginalfetchedRowCount = OrigVO.getRowCount();   
    
         RowSetIterator originalSelectIter = OrigVO.createRowSetIterator("originalSelectIter");
         RowSetIterator selectIter = vo.createRowSetIterator("selectIter");
    
         if (fetchedRowCount > 0 && OriginalfetchedRowCount >0)
            {
              selectIter.setRangeStart(0);
              selectIter.setRangeSize(fetchedRowCount);
              originalSelectIter.setRangeStart(0);
              originalSelectIter.setRangeSize(OriginalfetchedRowCount);
              for (int i = 0; i < fetchedRowCount; i++)
              {
    
                rowi = (MainViewObjectVORowImpl)selectIter.getRowAtRangeIndex(i);
                rowii = (DBViewObjectVORowImpl)originalSelectIter.getRowAtRangeIndex(i);
    
               //Compare Attribute here
    
                   if((!(rowi.getRoleStartDate().equals(rowii.getRoleStartDate())) 
    
                    {
                            // Comparing Start date here of both View Object
                    }
    
                 else if(((rowi.getRoleEndDate().equals(rowii.getRoleEndDate()))
                   {
                       // Comparing End date here of both View Object
                    }
              }
           }
    
    }
    

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • Find the median of a set of data

    I have a table that looks like this:

    Range

    Set of data: range values

    Data set b: range values

    0.00 - 0.99

    35

    67

    1.00 - 1.99

    35

    40

    2.00 - 2.99

    49

    54

    3.00 - 3.99

    41

    45

    4.00 - 4.99

    36

    38

    5.00 - 5.99

    31

    34

    6.00 - 6.99

    22

    29

    7.00 - 7.99

    30

    20

    8.00 - 8.99

    24

    16

    9.00 - 9.99

    16

    11

    10.00 - 10.99

    15

    10

    11.00 - 11.99

    12

    5

    12.00 - 12.99

    11

    1

    13.00 - 13.99

    5

    2

    14.00 - 14.99

    5

    1

    15.00 - 15.99

    2

    0

    16.00 - 16.99

    1

    0

    17.00 - 17.99

    2

    0

    18.00 - 18.99

    1

    0

    How can I find the median interval for each set of data (A and B)?

    Thanks for your help!

    Median and range are two different things from what I remember. Can you please send a link to a Web site that could describe what a "median line"?

    Median is the average of a set of data (even counting data sets usually take the average < average > the values of two intermediate points)

    Range is simply the max - min.

    Jason

Maybe you are looking for

  • Firefox 10 blocks Roboform how can I do accept Roboform?

    I up graded to 10.0.2 Firefox and I RoboformPro. Firefox has disabled RoboformPro 'for my protection. " It is said that RoboForm causes accidents. According to your list FQ, he must accept it. What should I do now?

  • Updating BIOS on a Tecra M4?

    I have a Tecra M4 2006 and it was check for Vista compatibility - it seems that it is a no-go for now (maybe a different subject if I have a sticker 'compatible windows vista' and its far from compatible I see) However, he did ask me to try to update

  • BlackBerry Smartphones how can I install app gmail google for

    9320

  • Deleting records in an Oracle table

    I have a table of RESULTS and want to delete the records does not correspond to the account and IDS on the table 2.This is the request I have formed-delete results pwhere (p.account, p.match_value) not in(select the id from 2 account)However, NOT IN

  • Try importing a gallery from another site (Cincopa).

    Have used it before, but can't find out where to put the code (embed) that is provided by the site. Not a guru of Dreamweaver but I used the site to place a gallery on a site I did for Dreamweaver class at school. I have all my pages that are put in