Successfully delete a line a secondary ASP?

I try to delete one line of a secondary ASP NetMonitor, but continue to get a "java.util.ConcurrentModificationException: underlying secondary ASP has been modified" exception.

Here is the latest iteration of the script I was trying:

hostName = 'Test123 '.

cfgSvc = server. ConfigService

aSvc = server. AgentService

netObj = #! NetMonitor_ServiceLevels # .getTopologyObjects () .findAll {computer. DeviceName == hostName} .fate {a, b-> b.lastUpdated<=> a.lastUpdated} [0]

Agent = aSvc.findByName (netObj.monitoringAgent.agentInstance) [0]

ASP = cfgSvc.getAgentInstanceConfigs (agent.getAgentNamespace (), agent.typeId, agent.id) .findAll {it.getSharingName () == 'netDevList'} [0]

lines = asp.getRows)

for {(rank lines)

If (Row.GetString ("DeviceName") == hostName) {}

asp.removeRow (row)

cfgSvc.saveConfig (asp)

}

}

FYI - I get that exception if cfgSvc.saveConfig (asp) is REM out or not, however, the line is ACTUALLY deleted when it's not only out REM.

I can not catch the exception, but do not feel comfortable with that...

Any thoughts?

Thanks for the clarification, Brian.

He could complain because the lines loop continues to process the lines after the lines have been updated.

It worked for me when I replaced the end of the script with:

found = null

lines = asp.getRows)

for {(rank lines)

If (Row.GetString ("DeviceName") == hostName) {}

found = row

breaking

}

}

If (found == null) return null

asp.removeRow (found)

cfgSvc.saveConfig (asp)

Back to ASP.

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • I have verticle colored lines - from the bottom to the 1/2 in screen - I can see through them to read - I need to know the WAY to delete these lines

    I mâtinées verticle lines - from the bottom to the 1/2 in screen - I can see through them to read - I need to know the WAY to delete these lines - I once, a few years ago, removed, but they reappear - not my conscious fault - this is my old computer - A Compac - Windows 95 as an operating system

    Hello

    You should check with Support of Compaq, their documentation online and drivers,
    and ask in their forums about known issues.

    Microsoft product support has ended for Windows 95 a decade ago.

    Compaq - support, drivers and documentation online
    http://www.Compaq.com/country/cpq_support.html

    Compaq (HP) - Forums
    http://h30434.www3.HP.com/PSG/|

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • deleting several lines in a report?

    db11gxe, apex 4.0, firefox 24,

    How to delete several lines in a report at the same time?

    Thank you

    Hi newbi_egy,

    Here's a demo with a few steps that can be used in your scenario-

    (1) this is the query for a report on the emp table that has column empno with values single-

    SELECT APEX_ITEM.CHECKBOX(1,empno) " ", ename, job FROM   emp ORDER  by 1
    

    (2) a button Delete is created that submits the page.

    (3) a sur-soumettre the process is created with point process on submit - after calculations and Validations to determine that the sub process is running when you click the button remove.

    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
    delete from emp where empno=APEX_APPLICATION.G_F01(i);
    END LOOP;
    END;
    

    I hope this could help you.

    Kind regards

    Das123

  • Delete forbidden line

    Hello

    I created a set of tables (see SQL code below) and a few foreign key between them.
    I filled the S, R, you and V tables only, leaving empty. When I want to delete a line of U, I get the following
    error: ' * ORA-01460: letter dead or unreasonable conversion requested. "

    If I disable A_U_FK1 forced, I can delete a line of u. Notice that A is always empty.

    Sorry for my stupid question, but I do not understand why I have to disable the constraint of A_U_FK1 for the removal of a line of U:{{class=fontblue}}
    Is this a bug or did I miss something?

    Stephan

    Oracle XE 10.2.1.0
    Windows XP SP3
    --------------------
    SQL code for creating tables
    CREATE TABLE S
      (
        S_ID  NUMBER NOT NULL ENABLE,
        S_NOM VARCHAR2(1024 BYTE) NOT NULL ENABLE,
        CONSTRAINT S_PK PRIMARY KEY (S_ID),
        CONSTRAINT S_UK1 UNIQUE (S_NOM)
      );
    
    CREATE TABLE R
      (
        R_URL VARCHAR2(2048 BYTE) NOT NULL ENABLE,
        S_NOM VARCHAR2(1024 BYTE),
        CONSTRAINT R_PK PRIMARY KEY (R_URL),
        CONSTRAINT R_S_FK1 FOREIGN KEY (S_NOM) REFERENCES S (S_NOM) ON
      DELETE CASCADE ENABLE
      );
    
    CREATE TABLE U
      (
        U_URL VARCHAR2(2048 BYTE) NOT NULL ENABLE,
        U_DATE_AJOUT DATE DEFAULT sysdate NOT NULL ENABLE,
        U_CONTENU BLOB,
        S_NOM VARCHAR2(1024 BYTE) NOT NULL ENABLE,
        CONSTRAINT U_PK PRIMARY KEY (U_URL, U_DATE_AJOUT),
        CONSTRAINT U_S_FK1 FOREIGN KEY (S_NOM) REFERENCES S (S_NOM) ON
      DELETE CASCADE ENABLE
      );
    
    CREATE TABLE V
      (
        V_ID  NUMBER NOT NULL ENABLE,
        V_NOM VARCHAR2(1024 BYTE) NOT NULL ENABLE,
        CONSTRAINT V_PK PRIMARY KEY (V_ID),
        CONSTRAINT V_V_FK1 FOREIGN KEY (V_ID_ALIAS) REFERENCES V (V_ID) ON
      DELETE CASCADE ENABLE
      );
    
    CREATE TABLE A
      (
        A_ID NUMBER NOT NULL ENABLE,
        U_DATE_AJOUT DATE,
        U_URL VARCHAR2(20 BYTE),
        V_ID  NUMBER,
        CONSTRAINT A_PK PRIMARY KEY (A_ID),
        CONSTRAINT A_V_FK1 FOREIGN KEY (V_ID) REFERENCES V (V_ID) ON
      DELETE CASCADE ENABLE,
        CONSTRAINT A_U_FK1 FOREIGN KEY (U_URL, U_DATE_AJOUT) REFERENCES U (U_URL, U_DATE_AJOUT) ON
      DELETE CASCADE ENABLE
      );

    Not exactly, but try sync - lies the dimensions of your U_URL column between the tables A and U. U, it is 2048, in one he is 20.

  • Delete blank lines don't other containers

    Here is a weird problem that I have. Essentially, I'm working on a Flash editor. I start with a container, and the user can write text. Then, when the height of the text in the container reaches the last line, I create a new container. When the first bin is full, he jumps correctly to the next container. The same goes for when a user deletes the second container, it goes back to the first container. These containers represent pages.

    Now, the problem is the deletion of lines in the 2nd and jump back to the first container. All the works, well, IF there are characters on the last line of the container 1. If, however, I have 5 empty lines (just the jumps of line on them) in the first container, and then I get to the first character in the 2nd container, pressing return back does nothing. The flow composer correctly reduces the number of lines, but the cursor only goes in the 1st container when it encounters a line that has the characters on it. Hit the return back 3 times for example, keeps the cursor on the first line in the 2nd container. If I click on the last line in the 1st controller, the cursor will move to the 3rd in the last line (where the cursor should be finished after pressing BACKSPACE 3 times). Try clicking on the 2nd container, I can't put the cursor there aren't any longer has no lines in there.

    So my question is, why don't the cursor jumps to the 1st container when clearly the composer knows that there is no lines in the 2nd container?

    You use the TLF even like what I've said?   I use the Flex SDK with TLF 2.0.0.232 in 4.5.0.20135 kit.

  • How will I know where the time goes when you delete a line?

    Dear experts,

    Removal of certain rows in a table (approx. 4.9 GB / 2.9 Millon lines) takes an average of.5 seconds each line (on average).

    This table contains 3 clues, just I just rebuild. Statistics from a couple of the day before.

    I have imported/exported the table to a new schema and destruction prend.002 seconds each line (on average).

    How will I know where the time goes when you delete a line?

    BTW, this is ORACLE 10 g

    Thank you
    Serra

    There the child tables of this table with FK defined as DELETE CASCADE?

  • How to delete a line item / of a custom Data Type?

    Hi all

    I can't tried to delete a line of a custom data type.

    As you will see in the code below I add a line to an array of Type (this is done several times). I then loop through each row in the type of array and pass it the id in a separate function. Once it is I so need to remove this item from the array Type - that's where I think my syntax is wrong because I get an error "ORA-00903: invalid table name.

    Clear code
     DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
    Complete code
    l_DeleteList.extend;
    l_DeleteList(l_DeleteList.last) := DOCVERSIONID(l_DocVersID);
    
    .......................
    
    select count(*) INTO v_count FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE));
      -- loop temp table and delete document versions
      WHILE v_count > 0
      LOOP
      BEGIN
        SELECT docVersionID INTO l_DocVersID FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE ROWNUM = 1;
        DeleteSingleDocumentVersion(l_DocVersID);
        DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
        select count(*) INTO v_count FROM l_DeleteList;
      END;
      END LOOP;
    Thanks in advance,

    Toby

    Trim element removes it from the end of the collection... but you are a loop of the collection from the first to the last clue.

    If you use delete then the item is deleted but index still exists... then array.last and County are not equal...

    You can use something as shown in this example (rather than use a time loop on many items)... after deleting an item to browse a table...

    SQL> Declare
      2     TYPE    TYP_TAB IS TABLE OF PLS_INTEGER ;
      3     my_tab  TYP_TAB := TYP_TAB( 1, 2, 3, 4, 5 );
      4     v       Pls_Integer ;
      5  Begin
      6     my_tab.DELETE(2) ;
      7     v := my_tab.first ;
      8     Loop
      9        Dbms_Output.Put_Line( 'my_tab(' || Ltrim(To_char(v)) || ') = ' || my_tab(v) ) ;
     10        v := my_tab.NEXT(v) ; -- get the next valid subscript
     11        Exit When v IS NULL ;
     12     End loop ;
     13  End ;
     14  /
    my_tab(1) = 1
    my_tab(3) = 3
    my_tab(4) = 4
    my_tab(5) = 5
    

    Published by: ravikumar.sv on August 10, 2009 15:19

  • Deleting duplicate line

    Hello

    I have a delicate situation.

    my query is like this:
    select count(*), source, ttype, tdate, qty, rate, cost, charge, impstatus, errorcode, proj_code, res_code, role_code, job_id, extl_id, taskid, rate_curr, cost_curr,ext_source_id, chg_code, inp_type
    from transimp
    where ttype = 'X'
    and res_code = 'NLAB'
    and tdate >= '01-MAR-2009'
    group by source, ttype, tdate, qty, rate, cost, charge, impstatus, errorcode, proj_code, res_code, role_code, job_id, extl_id, taskid, rate_curr, cost_curr,ext_source_id, chg_code, inp_type
    having count(*) > 1
    This query returns me 700 records with count (*) = 3
    which means that they are duplicates of records in the table (Please note we have a primary key, but these documents are double according to the needs of the company).

    I want to remove these duplicates, i.e. after the deletion if I run the same query again, count (*) must be 1.

    any thoughts?

    Thanks in advance.

    Dear Caitanya!

    It is a DELETE statement that deletes duplicate rows:

    
    DELETE FROM our_table
    WHERE rowid not in
    (SELECT MIN(rowid)
    FROM our_table
    GROUP BY column1, column2, column3... ;
    

    Here Column1, Column2, Column3 is the key for each record.
    Be sure to replace our_table with the name of the table for which you want to remove duplicate rows. GROUP BY is used on the columns making up the primary key of the table. This script deletes every line in the group after the first row.

    I hope this could be of help to you!

    Yours sincerely

    Florian W.

  • Manipulation of table (delete the lines which are &gt; lines after them)

    I have a table of entry I want to manipulate.

    We measure a rotation device.  In the measurement sequence we want to display the data on a slope that is constantly growing, although when we let off the coast of the acceleration of our mobile device at the end of the test, we end up with a higher torque #s at the beginning of the sequence of RPM... which blurs our line of slope on our chart.

    For example, see the PNG attached on the table of torque/RPM torque.  I need to be able to cut the 2 first lines of the table that we need go less and more general in the line of torque sequence.  Throughout the test, we have a number of line 10 for example couple that is greater than the value of torque on line 11, so that we would need to cut the value of torque in line 10.

    I have attached the vi sub that I plugged in order to try it, but can't make it work.   I don't have to sort the table, but to remove the lines that exceed the lines after them... relatively to the value of rpm decreases constantly.  If I have a pair of value 2340/1869 in the row 1 & 276/1839 in row 2, I need rank 1 deleted.  But if I have a pair of value of 2509/1704 in row 12 & a pair value of 2493/1689 in the 13th row, I don't want to let the value of torque in (if possible) because it is a realistic appearance of the torque curve captured during the sweep of the power of the test.

    Any ideas?

    ready!

  • Delete the line feature in a Table with Multiselect LOV

    [Issue]

    Is it possible to add a remove function line in a Table Advancced with Multiselect LOV?

    [Reminder]

    I created a page OFA by "LOV Multiselect for Advanced of Table" according to the developer's guide.
    This is the expected behavior.

    • The values in the LOV screen have been added to the table in the main screen.
    • The values selected in the new LOV screen have been inserted to the table in the basic screen by additions.

    Then, when I have attached an icon to remove a table, it was not the expected behavior.

    • The values in the LOV screen have been added to the table in the main screen.
    • Again selected in the screen LOV values were NOT inserted into the table of the basic screen by additions.

    The deletion icon was created according to the tutorial from the OFA (Chapter 2: lessons from Core - delete)
    and here are the properties of the element.

    • customer action type: fireAction
    • form: true
    • paraemter name: target
    • parameter value: 1 (nominal value)

    Before attaching the trash icon,
    When the user select values in the LOV screen, processFormRequest method in the basic screen is executed.

    But after attaching the trash icon,
    When the user select values in the LOV screen, processFormRequest method in the basic screen is NOT executed.

    Is it possible to add a remove function line in a Table Advancced with Multiselect LOV?

    Best regards

    Eimei

    The problem was solved by changing a parameter name.

    It seems that the parameter name 'target' is used in a standard program.

  • MERGE statement - delete all lines?

    Hi all

    I am using Oracle 11 g and in my application, I need to update several existing records in a table in the Production environment. For this, I wrote a SQL logic using the "MERGE INTO" statement.

    Here's the SQL logic that I used.

    merge into the tar of the target

    a_l'_aide_de)

    Select

    EC.prim_id,

    CSM.Cptr,

    CSM.prm,

    CSM.scnd,

    CSM. PTXT,

    CSM.entn,

    CSM. ENPR,

    CSM.sevr

    t2 t1 ec cat inner join

    on ec.x = cat.y

    inner join s t3

    on ec.p = q.a.

    inner join t3 b

    on ec.m = b.n

    inner join t4 csm

    on)

    (lower (replace (cat.xn, b.sname |))) ((('-', ")) = lower (csm.xn))

    and (below (replace (s.yn, b.sname |))) ((('-', ")) = lower (csm.yn))

    and (lower (b.rn) = lower (csm.rn))

    )

    where ec.cptr is null

    and ec.prm is null

    and ec.scnd is null

    and ec.ptxt is null

    and ec.stxt is null

    and ec.entn is null

    and ec.enpr is null

    and ec.sevr is null

    ) CBC

    on)

    SRC.prim_id = tar.prim_id

    )

    When matched then update

    Set tar.cptr = src.cptr,

    tar.PRM = src.prm,

    tar.scnd = src.scnd,

    tar. PTXT = src.plcy_txt,

    tar. MID = "offline."

    tar.entn = src.entn,

    tar. ENPR = src.enpr,

    tar.sevr = src.sevr

    I doubt here, that is, if the condition WE in education MERGE gets failed then is it insert/delete all records in/to from the target table. But I think that it won't happen because I'm not specify the statement as 'WHEN DO NOT MATCHED THEN' right? Or default oracle will insert/remove all lines if the condition does not. ???

    Your help is very appreciated.

    Thanks in advance

    If your question is addressed, then close this thread.

  • Deleting duplicate lines

    Hello
    We need help removing duplicate rows from a table please.

    We get the following table:
    SSD@ermd> desc person_pos_history
     Name                                                                     Null?    Type
     ------------------------------------------------------------------------ -------- ------------------------
    
     PERSON_POSITION_HISTORY_ID                                               NOT NULL NUMBER(10)
     POSITION_TYPE_ID                                                         NOT NULL NUMBER(10)
     PERSON_ID                                                                NOT NULL NUMBER(10)
     EVENT_ID                                                                 NOT NULL NUMBER(10)
     USER_INFO_ID                                                                      NUMBER(10)
     TIMESTAMP                                                                NOT NULL DATE
    We discovered that rare person_id repeated for a particular event (3):
    select PERSON_ID, count(*)
    from person_pos_history
    group by PERSON_ID, EVENT_ID
    having event_id=3
         and count(*) > 1
    order by 2
    
     PERSON_ID   COUNT(*)
    ---------- ----------
        217045        356
        216993        356
        226198        356
        217248        364
        118879        364
        204471        380
        163943        384
        119347        384
        208884        384
        119328        384
        218442        384
        141676        480
        214679        495
        219149        522
        217021        636
    If we look at the id of the person 1 "217045", we can see that he repeats 356 times for event id 3.
    SSD@ermd> select POSITION_ASSIGNMENT_HISTORY_ID, POSITION_TYPE_ID, PERSON_ID,EVENT_ID, to_char(timestamp, 'YYYY-MM-DD HH24:MI:SS')
      2  from person_pos_history
      3  where EVENT_ID=3
      4  and person_id=217045
      5  order by timestamp;
    
       PERSON_POSITION_HISTORY_ID  POSITION_TYPE_ID  PERSON_ID   EVENT_ID TO_CHAR(TIMESTAMP,'
    ------------------------------ ---------------- ---------- ---------- -------------------
                            222775               38     217045         03 2012-05-07 10:29:49
                            222774               18     217045         03 2012-05-07 10:29:49
                            222773                8     217045         03 2012-05-07 10:29:49
                            222776                2     217045         03 2012-05-07 10:29:49
                            300469               18     217045         03 2012-05-07 10:32:05
    ...
    ...
                           4350816               38     217045         03 2012-05-08 11:12:43
                           4367970                2     217045         03 2012-05-08 11:13:19
                           4367973                8     217045         03 2012-05-08 11:13:19
                           4367971               18     217045         03 2012-05-08 11:13:19
                           4367972               38     217045         03 2012-05-08 11:13:19
    
    356 rows selected.
    It is prudent to assume that the event id per person with the earlier timestamp id is the one who was in charge of 1st, as a result, we want to keep and the rest should be deleted.

    You kindly help us with the sql for the removal of duplicates please.

    Concerning

    Hello

    rsar001 wrote:
    ... We must maintain a row of data for each unique position_type_id. The query you provided with gratitude deletes lines keep them all not only one line for the id of the person 119129 regardless of which is the position_type_id.

    In fact, the statement that I posted earlier maintains a line for each separate person_id combnination and event_id; This is what means the analytical PARTITION BY clause. That made this assertion would be clearer if you had a different sample of the value. You posted a rather large set of samples, about 35 lines, but each row has the same person_id, and each row has the same event_id. In your real table, you probably have different values in these columns. If so, you should test with data that looks more like your real table, with different values in these columns.

    How can we change the query so that it holds the position_type_id County please before you delete the duplicate rows.

    You can include positiion_type in the analytical PARTITION BY clause. Maybe that's what you want:

    ...     ,     ROW_NUMBER () OVER ( PARTITION BY  person_id
                                   ,                    event_id
                             ,             position_type     -- *****  NEW  *****
                             ORDER BY        tmstmp
                           )         AS r_num
    ...
    

    CREATE TABLE and staements of INSERTION for the sample data and desired outcomes from these data, I'm only guessing.

  • Need to delete duplicate lines

    I have two tables MEMBER_ADRESS and MEMBER_ORDER. The MEMBER_ADRESS has the lines duplicated in MEMBER_ID and MATCH_VALUE-based computing. These ADDRESS_IDs duplicate have been used in MEMBER_ORDER. I need to remove duplicates of MEMBER_ADRESS by making sure I keep one with PRIMARY_FLAG = 'Y' and update MEMBER_ORDER. ADDRESS_ID to the MEMBER_ADRESS. ADDRESS_ID I kept.

    I'm on 11 GR 1 material

    Thanks for the help.
    CREATE TABLE MEMBER_ADRESS
    (
      ADDRESS_ID               NUMBER,
      MEMBER_ID                NUMBER,
      ADDRESS_1                VARCHAR2(30 BYTE),
      ADDRESS_2                VARCHAR2(30 BYTE),
      CITY                     VARCHAR2(25 BYTE),
      STATE                    VARCHAR2(2 BYTE),
      ZIPCODE                  VARCHAR2(10 BYTE),
      CREATION_DATE            DATE,
      LAST_UPDATE_DATE         DATE,
      PRIMARY_FLAG             CHAR(1 BYTE),
      ADDITIONAL_COMPANY_INFO  VARCHAR2(40 BYTE),
      MATCH_VALUE              NUMBER(38) GENERATED ALWAYS AS (TO_NUMBER( REGEXP_REPLACE ("ADDITIONAL_COMPANY_INFO"||"ADDRESS_1"||"ADDRESS_2"||"CITY"||"STATE"||"ZIPCODE",'[^[:digit:]]')))
    );
    
    
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (200, 30, '11 Hourse Rd.', 
        '58754', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:34:10', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 1158754);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (230, 12, '101 Banks St', 
        '58487', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:35:42', 'MM/DD/YYYY HH24:MI:SS'), 'N', 10158487);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (232, 12, '101 Banks Street', 
        '58487', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:41:15', 'MM/DD/YYYY HH24:MI:SS'), 'N', 10158487);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (228, 12, '101 Banks St.', 
        '58487', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:38:19', 'MM/DD/YYYY HH24:MI:SS'), 'N', 10158487);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (221, 25, '881 Green Road', 
        '58887', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:34:18', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 88158887);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (278, 28, '2811 Brown St.', 
        '58224', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:36:11', 'MM/DD/YYYY HH24:MI:SS'), 'N', 281158224);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (280, 28, '2811 Brown Street', 
        '58224', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:45:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 281158224);
    Insert into MEMBER_ADRESS
       (ADDRESS_ID, MEMBER_ID, ADDRESS_1, ADDRESS_2, ZIPCODE, CREATION_DATE, LAST_UPDATE_DATE, PRIMARY_FLAG, MATCH_VALUE)
     Values
       (300, 12, '3421 West North Street', 'x', 
        '58488', TO_DATE('08/11/2011 10:56:25', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('08/12/2011 10:42:04', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 342158488);
    COMMIT;
    
    
    CREATE TABLE MEMBER_ORDER
    (
      ORDER_ID    NUMBER,
      ADDRESS_ID  NUMBER,
      MEMBER_ID   NUMBER
    );
    
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (3, 200, 30);
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (4, 230, 12);
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (5, 228, 12);
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (6, 278, 28);
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (8, 278, 28);
    Insert into MEMBER_ORDER
       (ORDER_ID, ADDRESS_ID, MEMBER_ID)
     Values
       (10, 230, 12);
    COMMIT;

    Chris:

    In fact, it's a little meaner it seems at first glance, but it seems to work, at least on your sample data.

    The update, based on the before and after the sample data.

    SQL> SELECT * FROM member_adress;
    
    ADDRESS_ID  MEMBER_ID ADDRESS_1              CREATION_DATE          LAST_UPDATE_DATE       P MATCH_VALUE
    ---------- ---------- ---------------------- ---------------------- ---------------------- - -----------
           228         12 101 Banks St.          08/11/2000 10:56:25 am 08/12/2005 10:38:19 am N    10158487
           230         12 101 Banks St           08/11/2000 10:56:25 am 08/12/2006 10:35:42 am N    10158487
           232         12 101 Banks Street       08/11/2000 10:56:25 am 08/12/2007 10:41:15 am N    10158487
           300         12 3421 West North Street 08/11/2000 10:56:25 am 08/12/2011 10:42:04 am Y   342158488
           221         25 881 Green Road         08/11/2000 10:56:25 am 08/12/2011 10:34:18 am Y    88158887
           278         28 2811 Brown St.         08/11/2000 10:56:25 am 08/12/2006 10:36:11 am N   281158224
           280         28 2811 Brown Street      08/11/2000 10:56:25 am 08/12/2011 10:45:00 am Y   281158224
           200         30 11 Hourse Rd.          08/11/2000 10:56:25 am 08/12/2005 10:34:10 am Y     1158754
    
    SQL> SELECT * FROM member_order
      2  ORDER BY member_id, order_id;
    
      ORDER_ID ADDRESS_ID  MEMBER_ID
    ---------- ---------- ----------
             4        228         12
             5        230         12
            10        230         12
            11        232         12
            12        300         12
             6        278         28
             8        278         28
             3        200         30
    
    SQL> UPDATE member_order mo
      2  SET address_id = (SELECT address_id
      3                    FROM (SELECT address_id, member_id, match_value
      4                          FROM (SELECT address_id, member_id, match_value,
      5                                        ROW_NUMBER () OVER (PARTITION BY member_id, match_value
      6                                                            ORDER BY CASE WHEN primary_flag = 'Y' THEN 1
      7                                                                          ELSE 2 END,
      8                                                                    GREATEST(NVL(creation_date,TO_DATE('1/1/0001','MM/DD/YYYY')),
      9                                                                             NVL(last_update_date,TO_DATE('1/1/0001','MM/DD/YYYY'))) desc) rn
     10                                FROM member_adress)
     11                          WHERE rn = 1) ma
     12                    WHERE mo.member_id = ma.member_id and
     13                          ma.match_value = (SELECT match_value from member_adress maa
     14                                            WHERE maa.address_id = mo.address_id));
    
    SQL> SELECT * FROM member_order
      2  ORDER BY member_id, order_id;
    
      ORDER_ID ADDRESS_ID  MEMBER_ID
    ---------- ---------- ----------
             4        232         12
             5        232         12
            10        232         12
            11        232         12
            12        300         12
             6        280         28
             8        280         28
             3        200         30
    

    Then to remove it, something like:

    SQL> DELETE FROM member_adress
      2  WHERE rowid NOT IN (SELECT rowid
      3                      FROM (SELECT rowid,
      4                                   ROW_NUMBER () OVER (PARTITION BY member_id, match_value
      5                                                       ORDER BY CASE WHEN primary_flag = 'Y' THEN 1
      6                                                                     ELSE 2 END,
      7                                                                GREATEST(NVL(creation_date,TO_DATE('1/1/0001','MM/DD/YYYY')),
      8                                                                         NVL(last_update_date,TO_DATE('1/1/0001','MM/DD/YYYY'))) desc) rn
      9                            FROM member_adress)
     10                          WHERE rn = 1);
    
    SQL> SELECT * FROM member_adress;
    
    ADDRESS_ID  MEMBER_ID ADDRESS_1              CREATION_DATE          LAST_UPDATE_DATE       P MATCH_VALUE
    ---------- ---------- ---------------------- ---------------------- ---------------------- - -----------
           232         12 101 Banks Street       08/11/2000 10:56:25 am 08/12/2007 10:41:15 am N    10158487
           300         12 3421 West North Street 08/11/2000 10:56:25 am 08/12/2011 10:42:04 am Y   342158488
           221         25 881 Green Road         08/11/2000 10:56:25 am 08/12/2011 10:34:18 am Y    88158887
           280         28 2811 Brown Street      08/11/2000 10:56:25 am 08/12/2011 10:45:00 am Y   281158224
           200         30 11 Hourse Rd.          08/11/2000 10:56:25 am 08/12/2005 10:34:10 am Y     1158754
    

    John

  • WARNING Message - "delete this line?' before that is done.

    I am trying to find a way to warn the user that what they clicked the button will remove the entire line. If they answer 'Yes' to continue the deletion occurs. If they answer 'No', the line does not remove.

    Hello

    If you declare a variable to the value of the response in a dialog box, you can test this response and take action:

    // Prompt the user
    var nResponse = xfa.host.messageBox("You are about to delete this row. \n\nDo you want to continue?", "Deleting a row", 2, 2)
    
    // Test the response: Yes = 4
    if (nResponse == 4) {
         // You deletion script
    }
    

    Hope that helps,

    Niall

  • Deleting some lines

    Very new to illustrator and I am looking for assistance in the removal of some lines (or a better way to do what I'm looking for). The image below has been stretched with the tool pen with three separate lines (the other form of bag and the two rings. However, I can't seem to find a way to get rid of the external ling when he meets the two rings (in other words, I want to delete the straight line when he corsses on the rings). Thanks for the time.

    Untitled-2.jpg

    yranac,

    If you have the latest version (s), you can use the live paint.

    In all versions, you can (a bit like the suggestion in post #3):

    (4) select the inner form and the object > path > divide objects below;

    (5) changing the path to the right.

    To join the open path to the left and closed to the right path, you can:

    (6) cut the closed path where it must be attached with the scissors (2 points) tool and remove the short path between them.

    (7) direct selection (click or drag on) pairs of anchors to assemble an open path.

Maybe you are looking for