Problem in the merge command

When I tried to run this identifier not valid to B.DEPTNO

merge into dept3 b
using c dept
on (b.DEPTNO = c.DEPTNO)
When matched then
setting a day of set b.DEPTNO = b.DEPTNO,
b.DNAME = b.dname,
b.loc = b.loc,
b.Country_ID = b.Country_ID
When not matched then
Insert the values(c.DEPTNO,c.DNAME,c.LOC,c.COUNTRY_ID);

Shiv kumar says:
In fact it has been in front of mistakely, same problem
merge into dept3 b
using c dept
on (b.DEPTNO = c.DEPTNO)
When matched then
setting a day of set b.DEPTNO = c.DEPTNO,
b.DNAME = c.dname,
b.loc = c.loc,
b.Country_ID = c.Country_ID
When not matched then
Insert the values(c.DEPTNO,c.DNAME,c.LOC,c.COUNTRY_ID);

The closer you get on (b.DEPTNO = c.DEPTNO) and updates the same as b.DEPTNO = c.DEPTNO set

Why?

Tags: Database

Similar Questions

  • Problem with the DataExport command

    Hello Experts,

    Problem with the DataExport command in a calcscript (one's TIME and another is in the output file), tried using different option
    DataExportColHeader time; and
    DataExportOverwriteFile POWER

    (1) the second line in the output displays the month 'SEP', rather like a column. Here's the code used.

    (2) for the forecast, you would have several sections as example below
    (FcstMo (MS), FcstYr (2009) and AllMonths (JAN-dec), FcstYears (2010,2011,2012)).
    How to add in the same file can HOWEVER add us to the same file with multiple queries using DataExport patch, could not find option in the documentation.

    Code
    ------
    SET DATAEXPORTOPTIONS
    {
    WE DataExportDIMHeader;
    WE DataExportOverwriteFile;
    DataExportDecimal 8;
    };

    DIFFICULTY (@REMOVE (@RELATIVE("DepartmentID",0), "OR00777"), @RELATIVE ("goods and Services", 0 "),"AC8002602", CActVer, CurYr, 'EOP' & CurMo, @RELATIVE ("industry", 0))
    DATAEXPORT 'File' "" "/ opt/tools/arbor/hyperion/AnalyticServices/app/ExportfromMV7.txt";
    ENDFIX;



    Output file format
    ----------------------
    'Years' 'Versions' 'measures' 'Goods and Services' "DepartmentID" "Business line" 'BalType', 'Time '.
    "MS."
    '2009' 'ADMIRE' 'AC8002602' 'AC0000157' 'DI17801' 'OR00775' 'EOP' 100.00000000
    '2009' 'ADMIRE' 'AC8002602' 'AC0000157' 'DI17801' 'OR00776' 'EOP' 1000.00000000
    '2009' 'ADMIRE' 'AC8002602' 'AC0000157' 'DI17801' 'OR81305' 'EOP' 2000.00000000
    '2009' 'ADMIRE' 'AC8002602' 'AC0001904' 'DI17801' 'OR00775' 'EOP' 300.00000000


    Any help would be a great help.


    Thank you
    Jingle

    What is specified as you column size (should be a dense dimension) will appear in the second row. It shows you what each column of data. Even if you load not relational, you can specify the relational format. There is an interesting bug that has been fixed in 11.1.1.3 If the columns do not data, they have removed from the relational attraction, you can read more about this in my blog http://glennschwartzbergs-essbase-blog.blogspot.com/

  • Premium HP: HP Premium - problems with the TRIANGLE_P command in the programs.

    I have version 2015 7 28 (8151) firmware and can not be updated any further because I have only the Android app.

    Maybe the next problem has also been fixed already in a more recent update, as a previous problem of mine. We'll see.

    I want a 3-dimensional triangle of the project on the screen using the advanced form of TRIANGLE_P.

    First the good news.

    The following program works:

    EXPORT experiment1
    BEGIN
    LOCAL P1, P2, P3;
    RECT_P(); Clears the screen

    P1: = {100,100,75};
    P2: = {200,100,75};
    P3: = {100,200,225};

    TRIANGLE_P ({P1, P2, P3}, {{1,2,3, #FF}});

    GEL;
    END;

    Explanation: I define three dimensions 3 points P1, P2, P3 and insert them in a list in the triangle command. What are the angles of the triangle.

    In the second argument, I defined the triangle specifying these points in the first list indices, which are 1,2,3. #FF means that it is blue.

    Here is the result:

    It's not very spectacular, because the only thing that the program leaves the coordinate z points away and drawing of the triangle 2 dimensions resulting. So there is not a lot 3-dimensionality thereon. In fact nothing.

    Now, I'll try to do a little more complicated by the third argument, I have left aside until now. The first 2 arguments are the 2 lists of lists.

    The simplest form is a rotation matrix or list trivial-{1}:

    Syntax: TRIANGLE_P ([G], points_definition, triangle_definitions,

    rotation_matrix or {rotation_matrix or - 1, ["N"], [{eye_x, eye_y, eye_z}

    or - 1], [{3Dxmin, 3Dxmax, 3Dymin, 3Dymax, 3Dzmin, 3Dzmax}]}, [zstring])

    User manual

    The simplest rotation matrix is the identity matrix which consists of all zeros except the diagonal elements, which are 1. So I create this way M1.

    Now, I have replace the triangle command by:

    TRIANGLE_P ({P1, P2, P3}, {{1,2,3, #FF}}, M1);

    Or

    TRIANGLE_P ({P1, P2, P3}, {{1,2,3, #FF}}, {-1});

    "Two return output programs: ' error: invalid entry.

    "I tried several forms of the third argument, for example by specifying all possible sub arguments, but all what I try, I always get nothing else than: ' error: entry invalid.

    So I would like to know if if my firmware update is the cause, or I did something wrong or it is a bug.

    Hello

    I thought about it...

    The 'problem' is that, with only 3 entries in the first list and matrice matrix of a rotation, think the system, the first review, 3 3 points x, y parameters are, z coordinates for each of the 3 points. On second review, we see that they are not valid and an error. This stems from the fact that the Triangle can take so many different types of arguments and that it is not always easy to distinguish between the different forms.

    You can make sure the system interprets the input data in the form that you want to ensure that the list of the point has at least 5 Articles (even if they are not used). Then, he will work as in:

    EXPORT tt
    BEGIN
    LOCAL P1, P2, P3;
    RECT_P();                   Clears the screen

    P1: = {100,100,75};
    P2: = {200,100,75};
    P3: = {100,200,225};

    TRIANGLE_P ({P1, P2, P3, P1, P1}, {{1,2,3, #FF}}, [[0.5,1,0,0], [0,2,0,0], [0,0,1,0], [0,0,0,0]]);

    GEL;
    END;

    Cyrille

  • Problem with the Netstat command

    Windows XP Home Edition / 2002 Version / Service Pack 3... I am interested in running the Netstat command to check for Remote Access Trojans, can you please help me with what command to put in the control box? When I type in the command box run, a little black box pop up, then disappears. Why he don't rest so I can see what information is on the rise?

    Hello Bobby Collas,.

    If you try to view Netstat information, redirect it to a text file and then you can look at the text file.
    From a command prompt use the pipe command: > and then name a file name.

    Example:
    Netstat - a > netstat reply.txt

    -A: displays oneconnections active he's and the TCP and UDP ports on which the computer is listening.

    You can do a netstat /? to display all available commands.

    I hope this helps.

  • Problem when the transformation command is called in a dialog box

    Hi friends

    I m a problem with the script UI. I tried different things to fix but I m not able to get success.

    The script code is correct. The problem is: when I run the script and click on the button "run"... Photoshop would need execute the function to "Transform", it is called and would allow me to freely transform the selected layer.

    BUT... it I cannot drag the axis of the inclusive to transform. It's because Photoshop is understand that my UI dialog is still active, even to call dlg.close (---(et je ne peux pas transformer depuis une boîte de dialogue est active)).

    See:

    function transform() {}

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ('Lyr'), charIDToTypeID ('Ordn'), charIDToTypeID ('Trgt'));

    desc.putReference (charIDToTypeID ('null'), ref);

    desc.putEnumerated (charIDToTypeID ('FTcs'), charIDToTypeID ('QCSt'), charIDToTypeID ('Qcsa'));

    var desc2 = new ActionDescriptor();

    desc2.putUnitDouble (charIDToTypeID ('Hrzn'), charIDToTypeID('#Rlt'), 0.000000);

    desc2.putUnitDouble (charIDToTypeID ('Vrtc'), charIDToTypeID('#Rlt'), 0.000000);

    desc.putObject (charIDToTypeID ('Ofst'), charIDToTypeID ('Ofst'), desc2);

    desc.putUnitDouble (charIDToTypeID ('Hght'), charIDToTypeID('#Prc'), 100.001);

    try {executeAction (charIDToTypeID ('Trnf'), desc, DialogModes.ALL) ;} catch (e) {};}

    }

    var DLG = new window ('dialogue', "imagens v10 Processamento", [0,0,0,0])

    DLG. Size = [120 120]

    DLG. Center)

    run var = dlg.add ('button', [0,0,0,0], "Executar")

    Run.Size = [80,30]

    Run.Location = (30, 40)

    run.onClick = function () {}

    DLG. Close()

    var doc = app.activeDocument

    var layer = doc.activeLayer

    layer.isBackgroundLayer = false

    Transform()

    }


    DLG. Show()

    What Miss me?

    Photoshop does not type ("range") window, so I don't know how to handle

    Thank you for the help

    Best regards

    Gustavo.

    You can't have multiple modal dialog boxes running at once. ScriptUI dialog box is modal and therefore your transformation function. What you can do for this example is move the transformation according to the dlg.show (); line.

    Photoshop has a "palette" window, but because it is modeless is really only useful to the progressbars or other messages "Please wait". For the example you posted if it were a script palette would not stop at dlg.show () and wait for the user to do something. He would try to run the following line and, not finding any, stops. At best you would only see the flash window before the script completed.

  • Problem in the Merge statement

    Hi all

    I use the merge updated statement 30000 records of tables having 55 records of Lakes.
    But it takes a lot of time as I kill the session after 12 hours, as it was still ongoing.

    So, the same day I m using cursors, it will end in less than 3 hours.

    I used merge is: -.

    MERGE IN Table1 a
    USING (SELECT MAX (TO_DATE (TO_CHAR (contact_date, "dd/mm/yyyy")
    || contact_time,
    "jj/mm/aaaa HH24:Mi:SS".
    )
    ) m_condate,.
    appl_id
    FROM Table2 b,.
    (SELECT DISTINCT acc_no acc_no
    IN table 3, Table1
    WHERE acc_no = appl_id AND delinquent_flag = 'Y '.
    AND financier_id = 'NEWACLOS') d
    WHERE d.acc_no = b.appl_id
    AND (contacted_by IS NOT NULL
    OR followup_branch_code IS NOT NULL
    )
    GROUP BY appl_id) c
    WE (a.appl_id = c.appl_id AND a.delinquent_flag = 'Y')
    WHEN MATCHED THEN
    UPDATE
    SET last_contact_date = c.m_condate;

    In this query, table 1 has 30000 documents and table 2 and table 3 have records 3670955 and 555674 respectively.

    Please suggest, what I'm doing wrong with merger, because according to my understanding merge statement is much better than the updates or updates using cursors.

    Required info is as follows:

    SQL > show the user_dump_dest parameter

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    user_dump_dest string/opt/oracle/admin/FINCLUAT/udu
    MP
    SQL > show parameter optimizer

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    optimizer_dynamic_sampling integer 2
    optimizer_features_enable string 10.2.0.4
    optimizer_index_caching integer 0
    OPTIMIZER_INDEX_COST_ADJ integer 100
    the string ALL_ROWS optimizer_mode
    optimizer_secure_view_merging Boolean TRUE
    SQL > show parameter db_file_multi

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    db_file_multiblock_read_count integer 16
    SQL > show parameter db_block_size

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    Whole DB_BLOCK_SIZE 8192
    SQL > column sname format a20
    SQL > column pname format a20
    SQL > column pval2 format a20
    SQL > select
    2 sname,
    3 pname,
    pval1 4,.
    5 pval2
    6 of
    7 sys.aux_stats$;
    sys.aux_stats$
    *
    ERROR on line 7:
    ORA-00942: table or view does not exist


    Elapsed time: 00:00:00.05
    SQL > explain the plan for
    2 - Put your statement here
    3 MERGE IN one cs_case_info
    4 USE (SELECT MAX (TO_DATE (TO_CHAR (contact_date, "dd/mm/yyyy")
    5                          || contact_time,
    6 'dd/mm/yyyy HH24:Mi:SS.
    7                          )
    (8) m_condate,
    9 appl_id
    CS_CASE_DETAILS_ACLOS 10 b,
    11 (SELECT DISTINCT acc_no acc_no
    12 OF NEWACLOS_RESEARCH_HIST_AYLA, cs_case_info
    13 WHERE acc_no = appl_id AND delinquent_flag = 'Y '.
    14 AND financier_id = "NEWACLOS") d
    15 WHERE d.acc_no = b.appl_id
    16 AND (contacted_by IS NOT NULL
    17 GOLD followup_branch_code IS NOT NULL
    18                )
    C 19 GROUP BY appl_id)
    20. WE (a.appl_id = c.appl_id AND a.delinquent_flag = 'Y')
    21. WHEN MATCHED THEN
    UPDATE 22
    23 SET last_contact_date = c.m_condate
    24;

    He explained.

    Elapsed time: 00:00:00.08
    SQL > select * from table (dbms_xplan.display);

    PLAN_TABLE_OUTPUT
    ----------------------------------------------------------------------------------------------------------------------------------

    --------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU).
    --------------------------------------------------------------------------------------------------
    | 2 > MERGE STATEMENT | 47156 | 874K | 128K (1) |
    | 1. MERGE | CS_CASE_INFO |
    | 2. VIEW |
    | 3. HASH JOIN | 47156 | 36 M | 5672K | 128K (1) |
    | 4. VIEW | 47156 | 5111K | 82339 (1) |
    | 5. GROUP SORT BY | 47156 | 4236K | 298 M | 82339 (1) |
    | 6. HASH JOIN | 2820K | 247 M | 10 M | 60621 (1) |
    | 7. HASH JOIN | 216K | 7830K | 6985 (1) |
    | 8. VIEW | the index $ _join$ _012 | 11033. 258K | 1583 (1) |
    | 9. HASH JOIN |
    | 10. INDEX RANGE SCAN | IDX_CCI_DEL | 11033. 258K | 768 (1) |
    | 11. INDEX RANGE SCAN | CS_CASE_INFO_UK | 11033. 258K | 821 (1) |
    | 12. FULL RESTRICTED INDEX SCAN FAST | IDX_NACL_RSH_ACC_NO | 5539K | 68 M | 5382 (1) |
    | 13. TABLE ACCESS FULL | CS_CASE_DETAILS_ACLOS | 3670K | 192 M | 41477 (1) |
    | 14. TABLE ACCESS FULL | CS_CASE_INFO | 304K | 205 M | 35975 (1) |
    --------------------------------------------------------------------------------------------------

    Note
    -----
    -"PLAN_TABLE' is old version

    24 selected lines.

    Elapsed time: 00:00:01.04
    SQL > rollback;

    Complete restoration.

    Elapsed time: 00:00:00.03
    SQL > set autotrace traceonly arraysize 100
    SQL > alter session set events 10046 name context forever, trace level 8';
    ERROR:
    ORA-01031: insufficient privileges


    Elapsed time: 00:00:00.04
    SQL > disconnect
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    With partitioning, OLAP, Data Mining and Real Application Testing options
    SQL > spool off

    Published by: user4528984 on May 5, 2009 22:37

    Create indexes for tables. CS_CASE_DETAILS_ACLOS, CS_CASE_INFO

    also try to use the underside of suspicion

    (SELECT / * + no_merge * / SEPARATE acc_no acc_no)
    IN table 3, Table1

    HTH

  • Problem with the MERGE statement

    Hi all

    We'll cover the following:

    create table xx_test1 (invoice_id number, line_group_number number, LINE_TYPE_LOOKUP_CODE          VARCHAR2(25) ,LINE_NUMBER                    NUMBER(15)  );
    

    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,1,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,1,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,2,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,2,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,3,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,3,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,4,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,4,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,5,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,5,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,7,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,7,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,8,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,8,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,9,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,9,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,10,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,10,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,11,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,11,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,12,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,13,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,13,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,14,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,14,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,15,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,15,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,16,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,16,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,17,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,17,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,18,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,18,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,19,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,19,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,20,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,20,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,21,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,21,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,22,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,22,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,23,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,23,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,24,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,24,'TAX',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,25,'ITEM',null);
    Insert into XX_TEST1 (INVOICE_ID,LINE_GROUP_NUMBER,LINE_TYPE_LOOKUP_CODE,LINE_NUMBER) values (131549,25,'TAX',null);
    

    So, if we want to MERGE this table and update the lines with below:

    merge into xx_test1 DST
             USING (SELECT  LINE_GROUP_NUMBER,
                  LINE_TYPE_LOOKUP_CODE,
                  ROW_NUMBER() over(order by LINE_TYPE_LOOKUP_CODE, LINE_GROUP_NUMBER) as LINE_NUM
             from xx_test1
            where INVOICE_ID = 131549
           
                 ) SRC
          ON (DST.LINE_GROUP_NUMBER = SRC.LINE_GROUP_NUMBER AND dst.LINE_TYPE_LOOKUP_CODE = src.LINE_TYPE_LOOKUP_CODE AND dst.invoice_id = 131549 )
          WHEN MATCHED THEN
             update
                set DST.LINE_NUMBER = SRC.LINE_NUM
                ;
    


    I get an error message:

    SQL error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    I don't know why I'm getting this. Any ideas?

    Version: 11g

    Kind regards

    Alex

    whenever I have this error I convert my fusion in a select to see what is duplication

    select dst.LINE_GROUP_NUMBER, dst.LINE_TYPE_LOOKUP_CODE, count(*)
    from xx_test1 DST
    join (SELECT  LINE_GROUP_NUMBER,
                  LINE_TYPE_LOOKUP_CODE,
                  ROW_NUMBER() over(order by LINE_TYPE_LOOKUP_CODE, LINE_GROUP_NUMBER) as LINE_NUM
             from xx_test1
            where INVOICE_ID = 131549
         ) SRC
     ON (DST.LINE_GROUP_NUMBER = SRC.LINE_GROUP_NUMBER AND dst.LINE_TYPE_LOOKUP_CODE = src.LINE_TYPE_LOOKUP_CODE AND dst.invoice_id = 131549 )
    group by dst.LINE_GROUP_NUMBER, dst.LINE_TYPE_LOOKUP_CODE
    having count(*) > 1
    

    you have 2 dst. LINE_GROUP_NUMBER, summer time. Combination of LINE_TYPE_LOOKUP_CODE this duplication.

  • Layer duplicated to the new publication?  Weird problem with the duplicate() command.

    So, I'm writing a script that grabs the selected layers and throws them in a new document that corresponds to the original.

    But something strange that happens when I use duplicate several times in a row.  It duplicates my duplicate layers.

    I start with this selection:

    origional selection.PNG

    But an end to this result in my new doc:

    resulting problem.PNG

    This has me very confused.  I would appreciate someone looking at what I have.

    Thanks for the research.

    Here is the code:

    var FSTdoc = app.activeDocument;

    var curPATH = app.activeDocument.path+'/';

    fullNAME = app.activeDocument.fullName var;

    var ABSOfull = fullNAME.absoluteURI;

    var curPATHstr = String (curPATH);

    var fullNAMEstr = String (fullNAME);

    var theLayers = GetSelectedLayers();

    var HLDRdoc = app.documents.add (FSTdoc.width, FSTdoc.height, FSTdoc.resolution, FSTdoc.name, NewDocumentMode.RGB, FSTdoc.initialFill, FSTdoc.pixelAspectRatio, FSTdoc.bitsPerChannel, FSTdoc.colorProfileName);

    app.activeDocument = FSTdoc;

    LAY1 = theLayers [0] .duplicate (HLDRdoc, ElementPlacement. PLACEATBEGINNING);

    LAY2 = theLayers [1] .duplicate (HLDRdoc, ElementPlacement. PLACEATBEGINNING);

    lay3 = theLayers [2] .duplicate (HLDRdoc, ElementPlacement. PLACEATBEGINNING);

    function to get layers selected by paul m.;

    function GetSelectedLayers() {}

    var A = [];

    var desc11 = new ActionDescriptor();

    var ref9 = new ActionReference();

    Ref9.putClass (stringIDToTypeID ('layerSection'));

    desc11.putReference (charIDToTypeID ('null'), ref9);

    ref10 var = new ActionReference();

    Ref10.putEnumerated (charIDToTypeID ('Lyr'), charIDToTypeID ('Ordn'), charIDToTypeID ('Trgt'));

    desc11.putReference (charIDToTypeID ('From'), ref10);

    Try the lock to stop the script

    try {}

    executeAction (charIDToTypeID ('Mk'), desc11, DialogModes.NO);

    } catch (err) {}

    Alert ("Script will not work on locked layers.");

    throw new Error ("locked layer");

    }

    var gL = activeDocument.activeLayer.layers;

    for (var i = 0; i < gL.length; i ++) {}

    A.push (GL [i]);

    }

    executeAction (charIDToTypeID ('undo'), undefined, DialogModes.NO);

    return A;

    };

    What version of Photoshop are you using? I think the problem is that you have multiple selected layers when you perform step duplicate. With the new version that will be fooled all selected layers. By three not fooled, you are indeed fool all the layers selected three times.

    I think you should do that one step of dupe or change the layer selection to a single layer after layer selected and before step of dupe.

  • Copy and update data from one table to the new table by using the Merge command

    Hello

    Can someone tell me please how to do this?
    I have a table: EMP (ename, sal, empno (pk), dept) another table is EMP_CLASS ((pk) empno, ename)

    I want to insert corresponding lines of emp to table emp_class if this line does'nt exists in emp_class
    otherwise it will be update info by corrsponding emp_class table as well as remove of emp_class according to the emp delete operation.






    Thank you
    Madam.

    Published by: Nico on August 12, 2010 22:59

    Have changed. PLS, run once more...

    MERGE INTO emp_class
    With the HELP of emp
    WE (emp.empno = emp_class.empno)
    WHEN MATCHED THEN
    UPDATE
    SET emp_class.ename = emp.ename,
    emp_class. DEPTNO = emp.deptno,
    emp_class. Class = decode(emp.deptno,10,1,20,2,30,3,40,4)
    DELETE
    WHERE emp_class.empno = emp.empno
    WHEN NOT MATCHED THEN
    INSERT (emp_class.empno, emp_class.name, emp_class.deptno, emp_class.class)
    VALUES (emp.empno, emp.ename, emp.deptno, decode(deptno,10,1,20,2,30,3,40,4));

    P.S. Not tested

    Thank you
    Florian...

    Published by: Florian on August 13, 2010 01:53

  • using the MERGE command

    Hi all
    I have the table with the name ac_supp_shed_main with columns supp_id, supp_name, delflag, net_amount, clear_amount, balance_amount
    and a view named as view_supplier_dues.

    I am retriving some specific lines to form the view_supplier_dues view and insert these specific lines in ac_supp_shed_main of a grid designed forms to oracle 10g with check_box control.

    When check out some of the specific records it will insert in this table.
    I have a procedure written in forms to load the data in the grid, if certain documents are inserted into this table prviously, then these files are coming up with checking these boxes in the grid.

    My requirment is that if I am again you want to insert those verified records then these documents delflag value 'y' and registers
    are not present in the table to insert in this table

    I am writing in order to merge 10g oracle forms for this
    -------------------------------------------------------------------------------------
    merge into ac_supp_shed_main
    using (select count (*) from v_count
    from view_supplier_dues where bill_no = 12345 and bill_date ='01 - May - 2010 "(et supp_id = 345 and delflag = ' n ')"
    When matched then
    Update ac_supp_shed_main set delflag = 'y '.
    When not matched then
    insert into ac_supp_shed_main
    (supp_id, supp_name, bill_no, bil_date, delflag)
    values (234, "aunt stell Ltd.", 2323, 10-May-2010 ',' only)
    It's show error MERGE online...
    I give the example here.

    Please give me one to achieve any solution...

    It's show error MERGE online.

    ERROR? What is the error? I see no error?

    Please be aware that we do not have your tables & we do not have your data.
    Therefore, we can run, test, or improve your SQL posted.

    ALWAYS
    View the name of the operating system (OS) & version for DB Server System.
    View the results of
    SELECT * from version $ v
    or post the Oracle version with 4 decimals

    When everything has failed, read the Fine Manual
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_9016.htm#i2081218

    Published by: sb92075 on May 29, 2010 10:14

  • Problem: Blending options change when the merged layers

    Hello.

    I have a problem with the merge options. When I merge two files that both have effects, I get a layer display does not resemble the front. It looks like some options I applied seems to be 30% of what they were. For example, I got a text in a single layer with bevel and applied stamping and another layer (bottom box) with shadow bevel and inner. Now, when I merge these two, I can see looking bevel effect as the opacity is set to 30% for them, the text and the background remaining intact. Effect similarly degraded and not the shadow that was applied as weel looks like changed, but change the bevel cut.

    I noticed that if I turn this layer with the effect bevel in smart object, same thing happened. But even once, gradient stay unmodified.

    The general mix options are by default, normal mode, opacity 100, complete knockout 100, opacity, none, RGB, mix of Cup and the form of transparency is checked on. I didn't change anything there.

    Bevel options are: Pillow emboss, smooth, 100% depth, direction up, size 4, soften 0, angle 90, altitude 30...

    Any help?

    Thank you

    View 100% of the size when you merge. Do, they are different then?

  • Is the subst command broken in Windows 7?

    I have a media (MediaMonkey) reading application I've used for several years, one of its annoying features is that if you want to synchronize and convert the music into a local folder, you must create a virtual disk for this purpose letter. It's a pain, but I did this for years in Windows XP without any problem using the subst command. However, in Windows 7, I am struck by the problems.

    Scenario of

    I have 2 physical hard drives with multiple partitions each in my PC. Rather use a ton of drive letters, I configured the system for the partition system is mounted in the drive C:, as usual, but all other partitions are mounted in folders under C:\Volumes\(volume name)

    Let's say I have a folder for my multimedia files under C:\Volumes\Share\Music\Encoded_MP3 (where the partition is mounted on C:\Volumes\Share)

    I can create a Q: drive letter with in a command prompt (with administrator privileges) using -.

    C:\Volumes\Share\music\Encoded_MP3 q: SUBST

    After having done that, the command SUBST, said the drive letter exists.

    C:\Windows\System32>subst
    Q:\: => C:\Volumes\Share\music\Encoded_MP3

    But the drive Q actually does not appear in the Explorer of can I and MediaMonkey can not see it either by car.

    Is the subst command broken in Windows 7? and if so is it anothere medium to create a drive letter to a folder on a non-system drive partition?

    The SUBST command works in Windows 7, but the substituted drive is visible in the same level of privilege.  The execution of your command SUBST in an elevated command prompt should NOT fix your problem.  Interestingly, you can run it in fact in both a high and no high command prompt and it will be accessible in both directions.

  • Error in the Merge statement using dblink

    Hello

    I am facing the following error when you use the merge statement using the dblink.

    ORA-02069: global_names must be set to true for this operation parameter.

    I can use the same dblink in my select insert and update statements but when I try to use merge then he invites the error said, is also not any syntax error as same statement can be used on the same tables of database instead of dblink.

    Please suggest any help will be much appreciated.

    Thanks in advance

    Hi Aqeel

    If insert and update statements work well through links db, then it should not be a problem with the merge statement. But if you are faced with the question, so please check the entire sql statement with tnsnames on both sides. Please share the tnsnames for the two dbs with dblink ddl.

    Concerning

    Jihane Narain Sylca

  • Using Firefox 7.0.1; having problems with hotmail. Cannot click on controls at the top of MSG, which is New, reply, delete, etc.. Can click on the same commands @ the bottom of the problem w/no MSG. Also cannot click on Inbox folder once I have access to

    Using Firefox 7.0.1; having problems with hotmail. Cannot click on controls at the top of MSG, which is New, reply, delete, etc.. Can click on the same commands @ the bottom of the problem w/no MSG. Also cannot click on Inbox folder once I have access to another folder. All known solutions?

    This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

Maybe you are looking for