SQL: Rearrange random a column within a grouping value

10g release 2.

I have a grouping column and a column of data.
CREATE TABLE t1 (
    id      NUMBER
,   x1      VARCHAR2(10)
);
INSERT INTO t1 (id, x1) VALUES (1,'A');
INSERT INTO t1 (id, x1) VALUES (1,'B');
INSERT INTO t1 (id, x1) VALUES (1,'C');
INSERT INTO t1 (id, x1) VALUES (1,'D');
INSERT INTO t1 (id, x1) VALUES (1,'E');
INSERT INTO t1 (id, x1) VALUES (2,'F');
INSERT INTO t1 (id, x1) VALUES (2,'G');
INSERT INTO t1 (id, x1) VALUES (2,'H');
INSERT INTO t1 (id, x1) VALUES (2,'I');
INSERT INTO t1 (id, x1) VALUES (3,'J');
INSERT INTO t1 (id, x1) VALUES (4,'K');
INSERT INTO t1 (id, x1) VALUES (4,'L');
I am looking for a SELECT statement that will pull all the x 1 for a random ID given, such that every x 1 original is represented once in the new random column, but this data is not "Cross" his original group ID border.

So, this might be valid outputs:
        ID X1         RANDOMIZED
---------- ---------- ----------
         1 A          E
         1 B          A
         1 C          C
         1 D          B
         1 E          D
         2 F          F
         2 G          H
         2 H          G
         2 I          I
         3 J          J
         4 K          K
         4 L          L
.. .as would have this:
        ID X1         RANDOMIZED
---------- ---------- ----------
         1 A          A
         1 B          C
         1 C          E
         1 D          D
         1 E          B
         2 F          I
         2 G          H
         2 H          G
         2 I          F
         3 J          J
         4 K          L
         4 L          K
Note how the random value never cross a line ID.

On the other hand, the following would not be outputs valid...
        ID X1         RANDOMIZED
---------- ---------- ----------
         1 A          B
         1 B          E
         1 C          C
         1 D          A
         1 E          I
         2 F          D
         2 G          G
         2 H          F
         2 I          H
         3 J          J
         4 K          K
         4 L          L
because randomized 'I' is now the fifth data element to group the ID 1, whereas in the table, 'I' belongs to the group ID 2. Similarly, the randomized study "D" now appears as a line associated with the ID 2, whereas it is defined initially as belonging to ID 1.

A solution purely SQL is possible?

Thank you.

Hello

It is a different and much more interesting problem!

At the heart of the solution is always good: use two different schemes of numbering (at least one of them, based on a random number) to tell which element will be substituted for each.

Here's one way:

WITH      unpivoted_data   AS
(
     SELECT     id
     ,     address_ln_1                         AS address_txt
     ,     1                              AS address_ln_num
     ,     1 + LENGTH (address_ln_1)
            - LENGTH (REPLACE (address_ln_1, ' '))     AS token_cnt
     FROM     t_addr
     UNION ALL
     SELECT     id
     ,     address_ln_2                         AS address_txt
     ,     2                              AS address_ln_num
     ,     1 + LENGTH (address_ln_2)
            - LENGTH (REPLACE (address_ln_2, ' '))     AS token_cnt
     FROM     t_addr
)
,      cntr          AS
(
     SELECT     LEVEL     AS n
     FROM     dual
     CONNECT BY     LEVEL <= 1 + ( SELECT  MAX (token_cnt)
                           FROM    unpivoted_data
                         )
)
,     got_tokens     AS
(
     SELECT     u.*
     ,     c.n               AS token_num
     ,     REGEXP_SUBSTR ( u.address_txt
                     , '[^ ]+'
                     , 1
                     , c.n
                     )          AS token_txt
     ,     ROW_NUMBER () OVER ( PARTITION BY  u.address_ln_num
                                      ,                    c.n
                         ORDER BY        dbms_random.string ('P', 10)
                              )      AS o_num
     ,     ROW_NUMBER () OVER ( PARTITION BY  u.address_ln_num
                                      ,                    c.n
                         ORDER BY        dbms_random.value
                              )      AS r_num
     FROM    unpivoted_data     u
     JOIN     cntr          c     ON     c.n <= u.token_cnt
)
,     got_scrambled_txt     AS
(
     SELECT     CONNECT_BY_ROOT id     AS id
     ,     address_ln_num
     ,     TRIM ( SYS_CONNECT_BY_PATH ( token_txt
                                   , ' '
                            )
               )          AS scrambled_txt
     ,       r_num
     FROM       got_tokens
     WHERE       CONNECT_BY_ISLEAF     = 1
     START WITH     token_num     = 1
     CONNECT BY     token_num     = PRIOR token_num + 1
          AND     address_ln_num  = PRIOR address_ln_num
          AND     r_num          = PRIOR r_num
)
SELECT       o.id
,       MIN (CASE WHEN r.address_ln_num = 1 THEN r.scrambled_txt END)     AS scrambled_ln_1
,       MIN (CASE WHEN r.address_ln_num = 2 THEN r.scrambled_txt END)     AS scrambled_ln_2
FROM       got_scrambled_txt     r
JOIN       got_tokens          o     ON     r.r_num     = o.o_num
WHERE       o.address_ln_num     = 1
AND       o.token_num          = 1
GROUP BY  o.id
ORDER BY  o.id
;

This assumes that address_ln_1 is not NULL.

Exit (1st time):

. ID SCRAMBLED_LN_1                 SCRAMBLED_LN_2
---- ------------------------------ ------------------------------
 101 901 ORACLE PKWY
 102 1 INFINITE ROAD                APT 3B
 103 500 ANTONIO LOOP               SUITE 100

Output (2nd time: no changes to the query or table):

. ID SCRAMBLED_LN_1                 SCRAMBLED_LN_2
---- ------------------------------ ------------------------------
 101 1 ANTONIO PKWY                 APT 3B
 102 500 INFINITE ROAD
 103 901 ORACLE LOOP                SUITE 100

Tags: Database

Similar Questions

  • How can I compare the value of column within the COUNT() function?

    I want to compare the value of the column within the COUNT() function as below how ever it gives me the error. I want to calculate the percentage, how can I do this task?
    Thank you.


    SELECT department_id
    , COUNTY (salary < 250000) / COUNT (*)
    OF plch_employees
    GROUP BY department_id
    ORDER BY department_id;
    SELECT  department_id.
            COUNT(CASE WHEN salary < 250000 THEN 1 END) / COUNT(*)
      FROM  plch_employees
      GROUP BY department_id
      ORDER BY department_id
    /
    

    SY.

  • SQL monitor help with column of chronology

    monitor_test.jpg

    In the report attached to sql, in the timeline column means the whole last 3 began simultaneously and hash join is the first exploited who started?

    my understanding is 'index range scan' should start first and give the data to "Single Partition range". Only once this step completed, he should 'TABLE ACCESS Full'. Isn't this correct?

    Thanks for your time!

    Your description is correct - and I think that you just have to allow some defects in the rounded, graphic display of errors and inconsistencies in what is "the order of execution.

    If it is still possible, you can watch dbms_sqltune.report_sql_monitor output text () as numbers COULD clarify the sequence - on the other hand, the granularity of the timer is not very fine.

    You may find that the chronology of hash join begins before the access times two table - which highlights the problem of "means to launch an operation."  The subroutine "do a hash join" must begin before the two tablescans, on the other hand the mechanism 'return rowsource to parent' cannot start until after the second table access began to return the hash join lines.

    Another sign of the available seeds, of course, is that the select statement does not seem to have started until a few seconds after the hash join has started!

    Concerning

    Jonathan Lewis

  • What is the table/column name for group of segments data

    Hello!

    I'm looking at the specific table/columns that contain the values for the segments of people group by assignment. Well want to can someone tell me.

    Thank you.

    Jon

    Join the pay_people_groups with per_all_assignments_f with the people_group_id of the column

  • Mobile groups within other groups

    Seems really basic, but keep problems to move a group within another group (tested CC 2014 and 2015). So the following code results in an error of the argument not comply .move line (I also tried other variants like. PLACEATBEGINNING and. INSIDE):

    var doc = app.documents.add (256, 256, 72, "foo")

    var group1 = doc.layerSets.add)

    var group2 = doc.layerSets.add)

    Group1.move (Group2, ElementPlacement.PLACEATEND)

    doc. Close (SaveOptions.DONOTSAVECHANGES)

    But this way works OK

    var doc = app.documents.add (256, 256, 72, "foo")

    var group1 = doc.layerSets.add)

    var group2 = doc.layerSets.add)

    Layer1 var = group1.artLayers.add)

    Layer2 var = group2.artLayers.add)

    Group1.move (layer2 , ElementPlacement.PLACEAFTER)

    doc. Close (SaveOptions.DONOTSAVECHANGES)

    No cracking what limits are at stake here? You can do the latter, but then you might need to create and remove the layers of the tmp to use as target.

    Yes, it has been a problem, but you can use AM.

    var doc = app.documents.add( 256, 256, 72, "foo");
    doc.layerSets.add();
    var group1 = getLayerID();
    doc.layerSets.add();
    var group2 = getLayerID();
    
    moveLayerToLayerSet( group2, group1);
    
    function moveLayerToLayerSet( fromID, toID ){
    var desc5 = new ActionDescriptor();
    var ref4 = new ActionReference();
    ref4.putIdentifier( charIDToTypeID('Lyr '), Number(fromID) );
    desc5.putReference( charIDToTypeID('null'), ref4 );
    var ref5 = new ActionReference();
    ref5.putIndex( charIDToTypeID('Lyr '), getLayerIndexByID(toID) );
    desc5.putReference( charIDToTypeID('T   '), ref5 );
    desc5.putBoolean( charIDToTypeID('Adjs'), false );
    desc5.putInteger( charIDToTypeID('Vrsn'), 5 );
    try{
    executeAction( charIDToTypeID('move'), desc5, DialogModes.NO );
    }catch(e){alert(e);}
    };
    function getLayerID(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '),charIDToTypeID('Ordn'),charIDToTypeID('Trgt') );
    var desc = executeActionGet(ref);
    return desc.getInteger(stringIDToTypeID( 'layerID' ));
    };
    function getLayerIndexByID(ID){
    var ref = new ActionReference();
    ref.putIdentifier( charIDToTypeID('Lyr '), ID );
    try{
    activeDocument.backgroundLayer;
    return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1;
    }catch(e){
    return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ));
    }
    };
    
  • Apply an object style to the group without changing the object style of page within the group elements?

    Does anyone know a way to apply an object style to a group without changing the style of the subject of the articles within the Group?

    Well, as far as I know, there no way to do it. Apply an object style to a group applies this style to all elements within the group as well. So, I resorted to writing a script for this.

  • SQL to update two columns in a TABLE2 from TABLE1

    I know it's a simple question for some of you, but I am new to SQLs, so please help...

    I have two tables, TABLE1 and TABLE2 as below, the two tables contains more records 50million then:
    SELECT * FROM TABLE1.
    &&&&&&&&&&&&&&&&&&&&&&&&&&&
    ID                        BUS_FID                WORKID                  STATIONID                  
    ---------------------- ---------------------- ---------------------- ---------------------- 
    28400000117234         245                    13461428.25           16520877.8             
    28400000117513         403                    13461428.25           16520877.8             
    28400000117533         423                    13461428.25           16520877.8             
    28400000117578         468                    13461428.25           16520877.8             
    28400000117582         472                    13461428.25           16520877.8             
    
    
    SELECT * FROM TABLE2.
    &&&&&&&&&&&&&&&&&&&&&&&&&&&
    BUS_FID                    ID                 TRPELID                RELPOS                 WORKID                 STATIONID                
    ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- 
    114                    28400000117658         28400000035396         23.225                                                               
    115                    28400000117659         28400000035396         23.225                                                               
    116                    28400000117660         28400000035396         23.225                                                               
    117                    28400000117661         28400000035396         23.225                                                               
    118                    28400000117662         28400000035396         23.225                                                               
    119                    28400000117663         28400000035396         23.225                                                               
    120                    28400000117664         28400000035396         23.225                                                               
    121                    28400000117665         28400000035396         23.225                                                               
    122                    28400000117666         28400000035396         23.225                                                               
    123                    28400000117667         28400000035396         23.225                                                               
    124                    28400000117668         28400000035396         23.225                                                               
    125                    28400000117669         28400000035396         23.225                                                               
    126                    28400000117670         28400000035396         23.225    
    Now, I tried to use the following SQL to update the columns ID of WORK & STATIONID in TABLE2 but failed. BUS_FID in the two tables have been UNIQUE indexed and they can be used as primary keys to join these two tables.
    UPDATE (
      SELECT  p.WORKID px,
              p.STATIONID py,
              p.BUS_FID pid,
              temp.WORKID tempx,
              temp.STATIONID tempy,
              temp.BUS_FID tempid
        FROM  TABLE1 temp, 
              TABLE2 p
        WHERE pid = tempid
    )
      SET px = tempx,
          py = tempy;
    
    COMMIT;
    with above code, Oracle gave following errors:
    SQL Error: ORA-00904: "TEMPID": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    Can someone help me fix it? Thank you ~ ~ ~
    BTW, both two tables contains documents more than 50 million. So, if you have a better SQL to perform the same task, please let me know!

    Appreciated your help in advance.

    Alias cannot be used in the query (sub-) where they are defined.

    Concerning

    Etbin

  • Can sql RS only 1 column of return can be printed as a separate column value

    Hello
    I wonder if the result set sql returning only one column can be printed as a separate values column?

    IE.with a simple change to select empno, emp; It should be able to print.
    101,102,103

    Instead of
    EmpNo
    ----------
    101
    102
    103

    Thank you
    Jean Claude

    Here is an example with the EMP table in the Scott schema.

    select ltrim(sys_connect_by_path(empno,','),',') empno_list
      from (select e.*, row_number() over(order by empno) rno from emp e)
     where connect_by_isleaf = 1
     start with rno = 1
    connect by rno = prior rno+1
    
  • can I format the values aggregated within a group

    Hello everyone,

    Question: How can I format the values aggregated within a group.

    I created a group of - >
    <? for-each - group:current-group(); / PZN? >
    ...
    <? end for each group -? >

    Inside the group, I have grouped the VALUE->
    <? amount (current - group (/VALUE))? >

    Now I want to format the VALUE. I tried to apply a mask to format #, # 0.00 and tried to apply
    <? format - number:(sum(current-group()/PREIS));' 999G999D99'? > but either workes.

    full code:
    <? for-each - group:current-group(); / PZN? >
    <? format - number:(sum(current-group()/PREIS));' 999G999D99'? >
    <? end for each group -? >

    Andybody knows what I'm doing wrong?

    Thanks in advance!

    Sorry, I got them mixed up. This should work for you:

    or

    I'm not sure about your version and xslt function, but it seems that it does not recognize the xdoxslt:format_number so I guess that is not supported in the version 5.6.3.

    BR
    Magnus

  • Adding columns in the group by clause

    Hello

    My query is like this,

    Select empid, sum (sal) in the group by empid emp,

    I want additional columns to be included in the request

    Select empid, address, sum (sal) in the group by empid

    Is there a possible way to include the other columns outside the group by column.

    Thank you

    Hi, you can write like this

    select a.empid,e.address,a.sal from(
    select empid , sum(sal)as sal from emp group by empid )a ,emp e
    where a.empid=e.empid
    

    Published by: user10736825 on January 25, 2010 12:59

  • Number of error SQL ORA-00904: invalid column name has occurred.

    Hello
    on P8.18 on a Win 2003 server when we launch SWPAUDIT, it failed with:
    Number of error SQL ORA-00904: invalid column name has occurred. Query process failed.
    I searched this error on metalink3. Nothing in connection with.

    Any idea?

    Thank you.

    Please give a clear picture of what you are doing... .and what paintings... There is the possibility of the audit refers to certain tables... with deleted. names of columns just look in the structure of what you audit?

    Please, find the name of column...

    ORA-00904: string: invalid identifier
    Cause: The column name entered is invalid or missing.
    Action: Enter a valid column name. A valid column name must start with a letter, must be less than or equal to 30 characters and include only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in quotation marks. It cannot be a reserved word.

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • Addition of constraint not Null to a column that contains null values

    All,

    Could you please suggest me how to add the constraint not null to an existing column that has null values?

    SQL > create table nn (number n, s varchar2 (10));

    Table created.

    SQL > insert into nn values (1, 'test');

    1 line of creation.

    SQL > insert into values nn (2 '');

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > alter table nn edit n number not null;

    Modified table.

    SQL > nn desc;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    N NUMBER NOT NULL

    S                                                          VARCHAR2(10)

    SQL > alter table nn edit n number null.

    Modified table.

    SQL > nn desc;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    N                                                  NUMBER

    S                                                  VARCHAR2(10)

    SQL > alter table nn change s varchar2 (10) not null;

    ALTER table nn change s varchar2 (10) not null

    *

    ERROR on line 1:

    ORA-02296: impossible to activate (SCOTT) - found null values

    SQL >

    Thank you

    Use NOVALIDATE:

    SQL > alter table nn change s varchar2 (10) not null;
    ALTER table nn change s varchar2 (10) not null
    *
    ERROR on line 1:
    ORA-02296: impossible to activate (SCOTT) - found null values

    SQL >
    SQL > alter table nn change s varchar2 (10) not null NOVALIDATE;

    Modified table.

    SQL > insert into values nn (3, null);
    insert into nn values (3, null)
    *
    ERROR on line 1:
    ORA-01400: cannot insert NULL into ('SCOTT'. "' NN '. » S »)

    SQL > select * from nn;

    N S
    ---------- ----------
    1 test
    2

    SQL >

    SY.

  • Sort a column as a numeric value

    Hello

    I created a SQL report from collections and problems with the sorting of the column as a numeric value.

    I used create_collection_from_query2 for my digital set as a variable n001. But, when I use the same in my SQL statement, it is considering the column as a string.

    Please advise if I am doing something wrong that is causing this problem.

    Thank you in advance,

    Madan

    Thanks for the reply fac586.

    Is to help sort the value column, but we hide the column, users do not have it sort by themselves.

    I have solved this problem by using the interactive report and did not apex_item.display_and_save () but used n001 column directly in the select statement. It is allowing me to sort as a numeric value.

  • Merger with subquery causes ORA-38101 invalid column to INSERT the VALUES C

    What follows is a slightly shortened version of a SQL statement that causes the error.
              MERGE INTO applicant_matches m_table USING
              (
                   SELECT DISTINCT
                               s.student_id,
                               a.term_scope_id,
                               a.first_name,
                             a.last_name,
                             a.ssn_visa,
                             a.birth_date,
                             ...     
                         
              ) m_list ON
              (m_list.student_id =     m_table.student_id AND
                   m_list.first_name     =     m_table.first_name AND
                   m_list.last_name =     m_table.last_name AND
                   m_list.birth_date     =     m_table.birth_date AND
                   m_list.ssn_visa =     m_table.ssn_visa AND
                   m_list.term_scope_id =     m_table.term_scope_id)
    
              WHEN NOT MATCHED THEN
                     INSERT (m_table.student_id, m_table.term_scope_id, m_table.ssn_visa, m_table.first_name, m_table.last_name,
                           m_table.birth_date, m_table.ssn_match, m_table.dob_match, m_table.soundex_match, m_table.name_match, m_table.past_present)
                     VALUES
                        (m_list.student_id, m_list.term_scope_id, m_list.ssn_visa, m_list.first_name, 
                             m_list.last_name, m_list.birth_date, m_list.ssn_match, m_list.dob_match, m_list.soundex_match, 
                             m_list.name_match, 
    
    
                             (SELECT                    
                   'A'
                        FROM  term_scope ts
                             JOIN campus_term ct ON ts.campus_term_id=ct.campus_term_id
                             WHERE
                             ts.term_scope_id = 5  )
               
               )
               
    I've simplified the request a bit to see what combination of things are the cause of the problem, that is why she always inserts 'A' in m_list.past_present (a CHAR (1)) and always use 5 for the term_scope_id.

    On the SELECT subquery I get one
    ORA-38101 invalid column in the INSERT VALUES Clause: string "ts". "" term_scope_id ".

    However, if I leave the
    JOIN the ct campus_term ON ts.campus_term_id = ct.campus_term_id
    Then, the query works fine.

    Anyway, it must be insert 'A', so I can't imagine what that JOIN has to do with anything anyone. The term_scope_id is valid. It won't let you do a join in a subquery for a merge insert?

    BTW: I'm using Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - Production

    Try using the old join syntax

    Select 'x '.
    from t1, t2
    where t1.col = t2.col
    and t2.other_col = using_set.other_col

Maybe you are looking for

  • Portege R600 memory to operate only at 667 MHz?

    Hi all Memory of my R600-10 q is PC6400 800 MHz but it only runs at speed PC5300 / 667 Mhz.He has been in for repair with Toshiba for that matter, but he returned unrepaired with the explanation that the memory at 800 MHz in the R600 is only meant to

  • sleep/wake button Exchange program

    Hi, I would like to know is there an expiration date for the button standby/Exchange program? Thank you.

  • No sound in Media Player

    I have no audio problem with my browser, but I tried to play mp3 and mp4 files in two media players and or play sounds on a file type.  I ran fix on this page http://support.microsoft.com/mats/audioplayback, but he has found no problem.  One of the m

  • HP 5510 printers

    HP 5510 has problems with the print head. Go ahead and google it. Thousands of people have bought this defective product. The print head cannot be resolved. This product must be discarded... HP should have never been allowed to sell!  I'm done with H

  • I can't access one of my icons on the desktop with Windows 7

    Even though my title, I can't access one of my icons on the desktop window 7