Data of the order with lines comparison table

Hello

My question is...

I have a table with 5 columns, it is actually loaded from a file, and there is no direct PK, but for this combination of columns as used to make them unique

code, person, case

Table X

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

CODE CASE OLD_ID New_id PERSON AUTH                                                           

01 ab122 1234 0001 AU123 99393

07 vv353 7872 0919 FV982 78282

01 ab122 1982 9929 99393 AU123

04 hjsss 8839 8302 JK920 32320

01 ab122 0001 1982 AU123 99393

05 cg899 6728 32322 IKL020 65252

07 w353 0919 8282 FV982 78282

now I need to order these data comparing the values of the line to old_id new_id for each combination of code, person, case

need output like below

Table X

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

CODE CASE OLD_ID New_id PERSON AUTH                                                           

01 ab122 1234 0001 AU123 99393

01 ab122 0001 1982 AU123 99393

01 ab122 1982 9929 99393 AU123

04 hjsss 8839 8302 JK920 32320

05 cg899 6728 32322 IKL020 65252

07 vv353 7872 0919 FV982 78282

07 w353 0919 8282 FV982 78282

hot to get this result, any help is much appreciated...

Thank you

AK.

Hello

Do you mean that lines with the same combination of (person of code, 'CASE') will form a linked list, new_id of a line is the old_id of the next line, and you want that they sorted in order, from the old_id that isn't also a new_id?

If so, DO NOT use an ORDER BY clause.  Instead, use START WITH and CONNECT BY:

SELECT *.

FROM table_x

START WITH (NOT IN) old_id

SELECT new_id

FROM table_x

)

CONNECT BY old_id new_id PRIOR =

AND code = code PRIOR

AND 'CASE' = 'BOX' PRIOR

PER person = person PREREQUISITE

Tags: Database

Similar Questions

  • I have the order number and the date of the order with me want to support adobe creative cloud can advise you how to go to this topic

    I have the order number and the date of the order with me want to down load remains creative cloud on my desk pls can you advise me how to on this subject pls

    Cloud creation help / Creative Cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Cloud creation help / sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Cloud creation help / install, update or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications

    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • Problem of sync Tungsten E2 to the exchange of data of the order of the day

    Hi guys,.

    I am a pretty old used PALM devices, I have a Tungsten E2 that starting yesterday now not able to sync my PC more with any pf. I tried with Win 7, Win 8 using the Desktop 6.2 via Bluetooth using the HotSync Manager.

    When I try to sync - upward, HotSync manager activity seems to be ok, the computer ask me the password I type and then the synchronization process starts, number of clicks green confirms the good performance of sync files syetm but when synchronization try to drive the agenda, he's missing, I mean that he doesn, t go more.

    In my opinion, it seems that some data in your handheld pointer has changed and so that data from the agenda of the handheld to the PC is blocked. Unfortunately, I can't check with cable USB WIN 7 and 8 do not work with USB.

    No idea how to fix this without losing my data?

    Thanks in advance

    Maurizio1960

    Hello and welcome to the HP support community!

    PalmOS devices have been able to sync via a USB cable for Vista64, Win7 and now Win8 for quite a while now.  We have a post sticky implemented in the top few positions listed in this section:

    64-bit drivers HotSync

    The data of the order of the day is updated on the computer in Palm Desktop?  Run the auditor of the Palm Desktop on Tools/Options/tools database to see if something needs to be repaired, then set the conduit Hotsync next to the order of the day on "Desktop replaces the handheld computer."

    As usual, we recommend that you install NVBackup on an SD card before risking the loss of personal data.  It can be copied to the card, the card inserted in your Palm and a full backup made and saved in the card.  NVBackup can be found at www.freewarepalm.com.

    Another suggestion would be to install DBFixit of Pimlicosoftware.com.  It is designed to fix data errors, some free, others require pay a registration fee that goes to a sanctuary for gorillas.

    WyreNut

  • Date delivery is based on the Date of the order

    Hello

    I have a PDF form with 2 date field. Ago order dates & date required. Is it possible to program something that makes it impossible to demand date of LESS than 5 weeks?

    Example, someone put in the order date: 20/05/2015 if he puts the required date 01/06/2015, an error message appears saying that the minimum delivery time is 5 weeks?

    Thanks in advance for your help.

    Yes, it is possible. You can use this code as the custom validation script of the field "delivery date":

    if (event.value) {
        var orderDateString = this.getField("Order Date").valueAsString;
        if (orderDateString=="") {
            app.alert("You must first specify the order date.");
            event.rc = false;
        } else {
            var orderDate = util.scand("mm/dd/yyyy", orderDateString);
            var requiredDate = util.scand("mm/dd/yyyy", event.value);
            if ((requiredDate-orderDate)<(35*86400000)) {
                app.alert("The required date must be at least 5 weeks after the order date.");
                event.rc = false;
            }
        }
    }
    

    It can also be a good idea to reset the value in the required Date field when the value of the Date of the order is changed.

  • The problem is the USB Devices folder shown as a shortcut so I can not Capy of data in the folder with other devices or hard drive.

    Original title: USB problem

    I use windows 7 as operating system. I have problem when I insert USB devices as pan tie drive, mobile, reader of cards ect. USB port of my PC. The problem is the USB Devices folder shown as a shortcut so I can not Capy of data in the folder with other devices or hard drive. so please suggest me what I can do?

    Hello

    Start Windows Explorer, and then see if there is a drive letter assigned for access to the
    drive. If this is not the case, check if the disc is shown in disk management.

    1. Open Computer Management by clicking on the button start , by clicking on Control Panel, system and security, clicking Administrative Tools and then double-click computer management. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the left pane, under storage, click Disk Management.

    If there has made a right click option - assign a drive letter for you can use Windows
    Explorer to copy files.

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Why the date of the INVOICE is different from the date of the ORDER?

    Something weird is happening... I get notifications of workflow of the Business Catalyst for invoices, but sometimes the date of the order is the eve of the invoice. Causing havoc on the side shipping because when I print the invoice, good delivery and export order files, they do not correspond to the top and sometimes customers are duds.

    No idea why the date of the invoice would be different from the order date and how do I do to make them the same?

    Thanks in advance!

    Hey there,

    An invoice is not an order. It's an important thing to know.

    An order is generated by a few ways but especially as soon as a product is added to a basket - this order exists and that date. An invoice is a purchase and comes from an order.

    You create an order in the admin and save it but add no invoice number. You can see that you have just made an order and you'll see the button to generate the invoice.

    API may make an order and no invoice, a person can add items to the basket and finish the next day if they have their session open that long... Many reasons why these dates may differ.

  • How to fill the canvas with lines

    < mx:Canvas id = "b1" x = "10" y = "10" height = "40" width = "300" borderStyle = "solid" borderColor = "black" / >

    When I want to draw lines with difference of 15 pixels to fill the entire canvas I wrote the following

    for (var i: int = b1.x + 15; i < b1.x + b1.width; i = i + 15)
    {
    var line1:UIComponent = new UIComponent();
    var lineThickness1:Number = 1;
    var lineColor1:Number = 0 x 000000;
    var lineAlpha1:Number = 1;
    LINE1. Graphics.LineStyle (lineThickness1, lineColor1, lineAlpha1);
    LINE1. Graphics.MoveTo (i, B1.y);
    LINE1. Graphics.LineTo (i, B1.y + B1. Height);
    this.addChild (line1);
    }

    It works very well

    LLY,

    < mx:Canvas id = "b4" x = "600" y = "200" height = "60" width = "300" borderStyle = "solid" borderColor = rotation "black" = "40" / >

    I have the canvas above with the "b4" id only difference is that this canvas rotation

    How to fill the canvas with lines that I just did above?

    Hope this code will help you,

    for(var i: int = 15; i < b4.width; i = i + 15) {
         var line1: UIComponent = new UIComponent();
         var lineThickness1: Number = 1;
         var lineColor1: Number = 0x000000;
         var lineAlpha1: Number = 1;
         line1.graphics.lineStyle(lineThickness1, lineColor1, lineAlpha1);
         line1.graphics.moveTo(i, 0);
         line1.graphics.lineTo(i, b4.height - 1);
         //Add line in canvas instead of main container
         b4.addChild(line1);
    }
    
    
    
  • Replace the hyphen with line break

    Hello
    In my application, I want to replace the hyphen with line break
    . I use APEX4.0
    I use the following javascript code:

    < html >
    < script type = "text/javascript" >
    function test().
    {
    var visitorName = "< br / > ';
    var myOldString = "& P2_SI.";
    var myNewString = myOldString.replace (/-/ g, visitorName);
    }
    < /script >
    < / html >

    I have no idea how the get executed and make javascript work... can anyone help?

    Suzi,

    I changed the code for page 1:
    I don't know that is what you want, but it works :)
    That's what I did

    1. deleted tags
    2 P1_RESULTS element created to keep results
    3. $x_Value ("P1_RESULTS", myNewString) occasion; to fill a new element

    You cannot set the value P1_S2I in dynamic Action (onchange) - it looks like the code calls herself and kills the browser

    Lev

    Published by: the on August 27, 2010 11:49

    Published by: the on August 27, 2010 11:53

  • display data in the order of the CSA

    Hello

    I want to display these data in the order of the CSA, but its doesn't come not properly arrested IE by the no.

    Column
    1 abc defg
    2 aer ftg
    Cheikh Tidiane 11 efg
    20 Amps efg

    I use this query
    Select f_n had order by regexp_substr(f_n,'[0-9]*',1)

    but then this comes as
    1 abc defg
    Cheikh Tidiane 11 efg
    2 aer ftg
    20 Amps efg

    I want to like

    1 abc defg
    2 aer ftg
    Cheikh Tidiane 11 efg
    20 Amps efg

    Thank you

    Hello

    user13305573 wrote:
    Thank you

    It works
    I wanted to know one thing

    If I have a columnr as
    1.1.1 abc efg
    1.1.2 bdg efg

    So how can I use the query so that I can get the results in the order of the CSA.

    I use like this order of

    order by to_number (regexp_substr (f_n,'[0-9] + (\.))) [ 0-9] *) ?', 1)) ;

    But it's 1.1 and 1.2 correctly and not for large 1.1.1

    It would be sort "1.11' front ' 1.2'; This is not what you want, is it?

    I think that's what you want:

    order by  to_number (regexp_substr (f_n, '[0-9]+', 1, 1))
    ,       to_number (regexp_substr (f_n, '[0-9]+', 1, 2))
    ,       to_number (regexp_substr (f_n, '[0-9]+', 1, 3))
    

    The 4th argument to REGEXP_SUBSTR he said what case to take.

  • Click the "add another line" adv table must fill in the data in tbl.

    Hi all
    I have a requirement of value of column in table adavance automatically filling in read-only mode when the user clicks on the add another button in the row.

    Initially when the page loads there is no data and therefore no line in the table in advance. And advanced table will have the "add another line." When the user clicks this button, the first column of the table advance must complete with so-called values a contant '1'.


    Can someone please provide a code example in how to achieve this?


    Thank you
    Sunny

    Hi Sunny,

    Please use the controls below before creating and inserting the line so this new line will be created at the end.

    custVO1.last ();
    custVO1.next ();

    Thank you
    Agnes.

  • How to create indexes on the ordered collection of XMLTYPE table?

    I use Oracle 11.2.0.2.

    Basically, my XML documents have a 3-level hierarchy:

    event

    + - action [1: n]

    + - param [1: n]

    I try to create indexes on the tables of the orderly collection, but cannot get the right syntax...

    I created a table with an XMLType object-relational column:

    CREATE TABLE T_C_RMP_MNTRNG_XML_FULL_IL4 (
      MESSAGE_ID NUMBER(22,0) NOT NULL ENABLE,
      XML_EVAL_ID NUMBER(22,0),
      VIN7 VARCHAR2(7 BYTE),
      FLEET_ID VARCHAR2(50 BYTE),
      CSC_SW_VERSION VARCHAR2(100 BYTE),
      RECEIVED DATE,
      XML_CONTENT SYS.XMLTYPE ,
      DWH_LM_TS_UTC DATE NOT NULL ENABLE,
      CONSTRAINT PK_C_RMP_MNTRNG_XML_FULL_IL4 PRIMARY KEY (MESSAGE_ID)
    ) NOLOGGING TABLESPACE CATALOG
    VARRAY "XML_CONTENT"."XMLDATA"."action" STORE AS TABLE "T_OR_MON_ACTION" (
      NOLOGGING TABLESPACE "CATALOG"
      VARRAY "param" STORE AS TABLE "T_OR_MON_ACTION_PARAM" (
      NOLOGGING TABLESPACE "CATALOG"
      ) RETURN AS LOCATOR
    ) RETURN AS LOCATOR
    XMLTYPE XML_CONTENT STORE AS OBJECT RELATIONAL XMLSCHEMA "http://mydomain.com/cs.xsd" ELEMENT "monitoring";
    
    
    
    
    

    I execute the SELECT statement:

    SELECT EVENT_ID, ACTION_SUB_ID, MESSAGE_ID, ACTION_TYPE, UNIXTS_TO_DATE(ACTION_TIMESTAMP) ACTION_TIMESTAMP
    FROM T_C_RMP_MNTRNG_XML_FULL_IL4, 
    XMLTABLE( 
      'for $i1 in /monitoring , 
      $i2 in $i1/action            
      return element r {              
      $i1/eventId,              
      $i2            
      }' 
      PASSING XML_CONTENT COLUMNS 
      EVENT_ID VARCHAR(40) PATH 'eventId', 
      ACTION_SUB_ID INTEGER PATH 'action/actionSubId', 
      ACTION_TYPE VARCHAR2(100) PATH 'action/type', 
      ACTION_TIMESTAMP NUMBER(13,0) PATH 'action/time' 
    ) T2 
    WHERE ( 
      EVENT_ID IS NOT NULL AND ACTION_SUB_ID IS NOT NULL 
    )
    
    
    
    
    

    The plan of the explain command looks like this (sorry, don't know how to get it formatted any 'eye-team'):

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

    | ID | Operation | Name                        | Lines | Bytes | TempSpc | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |                             |  1609K |  6316M |       |  6110K (1) | 20:22:11 |

    |*  1 |  HASH JOIN |                             |  1609K |  6316M |   111 M |  6110K (1) | 20:22:11 |

    |   2.   TABLE ACCESS FULL | T_C_RMP_MNTRNG_XML_FULL_IL4 |   582K |   104 M |       |  5241 (1) | 00:01:03 |

    |*  3 |   TABLE ACCESS FULL | T_OR_MON_ACTION |    32 M |   117G |       |   105K (2) | 00:21:08 |

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

    Information of predicates (identified by the operation identity card):

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

    1 - access ("NESTED_TABLE_ID"= "T_C_RMP_MNTRNG_XML_FULL_IL4"." ("SYS_NC0001300014$")

    filter (CAST (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT ((SYS_XMLGEN ("T_C_RMP_MNTRN XMLCONCAT

    G_XML_FULL_IL4 ". "" $ SYS_NC00017 ", NULL, SYS_XMLCONV ("T_C_RMP_MNTRNG_XML_FULL_IL4". "SYS_NC00012$", 0.32,

    (('EC1EEF23FD023A27E04032A06D930A8D', 3, 3783, 1)), SYS_MAKEXML ('EC1EEF23FD023A27E04032A06D930A8D', 3780,

    'T_C_RMP_MNTRNG_XML_FULL_IL4 '. "' SYS_NC00008$ ', 'SYS_ALIAS_0 '. ((("' SYS_NC_ROWINFO$ ')),'/ ID ', NULL), 0,.

    0,20971520,0), 50.1, 2) AS VARCHAR (40)) IS NOT NULL)

    3 filter (CAST (TO_NUMBER (TO_CHAR ("SYS_ALIAS_0". "actionSubId")) AS INTEGER) IS NOT NULL) "

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    -Construction detected no optimized XML (activate XMLOptimizationCheck for more information)

    The XML schema looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:storeVarrayAsTable="true" oraxdb:flags="2105639" oraxdb:schemaURL="http://mydomain.com/cs.xsd" oraxdb:schemaOwner="MYUSER" oraxdb:numProps="23">
      <xs:element name="monitoring" oraxdb:propNumber="3785" oraxdb:global="true" oraxdb:SQLName="monitoring" oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="monitoring757_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element maxOccurs="unbounded" ref="action" oraxdb:propNumber="3780" oraxdb:global="false" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="action756_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="reservationType" oraxdb:propNumber="3781" oraxdb:global="false" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="softwareVersion" oraxdb:propNumber="3782" oraxdb:global="false" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="eventId" oraxdb:propNumber="3783" oraxdb:global="false" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="vin" oraxdb:propNumber="3784" oraxdb:global="false" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="action" oraxdb:propNumber="3790" oraxdb:global="true" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="action754_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element ref="type" oraxdb:propNumber="3786" oraxdb:global="false" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element maxOccurs="unbounded" ref="param" oraxdb:propNumber="3787" oraxdb:global="false" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="param753_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="actionSubId" oraxdb:propNumber="3788" oraxdb:global="false" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="time" oraxdb:propNumber="3789" oraxdb:global="false" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="type" type="xs:string" oraxdb:propNumber="3791" oraxdb:global="true" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="type751_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="param" oraxdb:propNumber="3794" oraxdb:global="true" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="param750_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element minOccurs="0" ref="value" oraxdb:propNumber="3792" oraxdb:global="false" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="key" oraxdb:propNumber="3793" oraxdb:global="false" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="value" type="xs:string" oraxdb:propNumber="3795" oraxdb:global="true" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="value748_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="key" type="xs:string" oraxdb:propNumber="3796" oraxdb:global="true" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="key747_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="actionSubId" type="xs:integer" oraxdb:propNumber="3797" oraxdb:global="true" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="actionSubId746_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="time" type="xs:integer" oraxdb:propNumber="3798" oraxdb:global="true" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="time745_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="reservationType" type="xs:string" oraxdb:propNumber="3799" oraxdb:global="true" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="reservationType744_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="softwareVersion" type="xs:string" oraxdb:propNumber="3800" oraxdb:global="true" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="softwareVersion743_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="eventId" type="xs:string" oraxdb:propNumber="3801" oraxdb:global="true" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="eventId742_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="vin" type="xs:string" oraxdb:propNumber="3802" oraxdb:global="true" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="vin741_TAB" oraxdb:defaultTableSchema="MYUSER"/>
    </xs:schema>
    
    
    
    
    

    How can I create an index on these tables of the ordered collection to improve performance?

    I found the example at http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_rewrite.htm#ADXDB5859 but am not able to apply to this particular case...

    Thank you in advance...

    If the schema is not annotated and XS: Integer and XS: String are mapped to types of data NUMBER and VARCHAR2 (4000), so you must use in your query to avoid typecasting unnecessary operations.

    You must also use XMLTABLEs chained when accessing a parent/child instead of a FLWOR expression relationship, otherwise the CBO cannot rewrite the XQuery query correctly (maybe it's fixed in the latest version).

    If you make these changes, the plan should show the cleaner predicates:

    SQL > SELECT EVENT_ID, MESSAGE_ID, ACTION_TYPE, ACTION_SUB_ID, ACTION_TIMESTAMP

    2 FROM test_table

    3 XMLTABLE ('/ monitoring ')

    4 COLUMNS XML_CONTENT OF PASSAGE

    5 WAY of VARCHAR2 (4000) EVENT_ID "ID."

    6 actions for XMLTYPE PATH 'action '.

    (7) T1,

    8 XMLTABLE ('/ action')

    Shares of PASSAGE 9 COLUMNS

    NUMBER of ACTION_SUB_ID 10 PATH "actionSubId."

    11 PATH of VARCHAR2 (4000) ACTION_TYPE "type."

    12 WAY of NUMBER ACTION_TIMESTAMP 'time '.

    (13) T2

    14 WHERE EVENT_ID IS NOT NULL

    15 AND ACTION_SUB_ID IS NOT NULL

    16;

    Execution plan

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

    Hash value of plan: 1763884463

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

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |                 |   109.   220K |     6 (17). 00:00:01 |

    |   1.  THE MERGE JOIN.                 |   109.   220K |     6 (17). 00:00:01 |

    |*  2 |   TABLE ACCESS BY INDEX ROWID | TEST_TABLE |    11.   352.     2 (0) | 00:00:01 |

    |   3.    INDEX SCAN FULL | SYS_C007567 |    11.       |     1 (0) | 00:00:01 |

    |*  4 |   JOIN TYPE.                 |   109.   216K |     4 (25) | 00:00:01 |

    |*  5 |    TABLE ACCESS FULL | T_OR_MON_ACTION |   106 S 216K |     3 (0) | 00:00:01 |

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

    Information of predicates (identified by the operation identity card):

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

    2 - filter("TEST_TABLE".") (' SYS_NC00012$ ' IS NOT NULL)

    4 - access("SYS_ALIAS_0".") NESTED_TABLE_ID "=" TABLE_TEST. " ("' SYS_NC0000800009$ ')

    filter ("SYS_ALIAS_0". "NESTED_TABLE_ID"="TABLE_TEST" "." " ("SYS_NC0000800009$")

    5 - filter("SYS_ALIAS_0"." actionSubId» IS NOT NULL)

    Note

    -----

    -dynamic sample used for this survey (level = 2)

    Now, if it is still necessary, everything boils down to choosing a technique for index NULL values:

    -composite index with a column not zero or constant

    -FBI

    -bitmap image

    Choose the one that best fits your data, the selectivity and activity on the tables.

  • Loading the data into the order of series of Timestamp

    I need to load data into the target table in the order of series of timestamp. How to do it.

    ex:

    2015-12-10 02:14:15

    2015-12-10 03:14:15

    2015-12-10 04:14:15

    After you follow the how to use the Direct-Path INSERT ordered by your "timestamp column" series described here above, you can sort the lines in ODI (order of) this way:

  • Copy the 35 million lines of table line 186 million

    OK, I tried to accomplish this feat for the last 4 nights. There is some limitation of I/O with this storage. Basically, my boss want a subset of an array of rank 186 million recorded in another table (without causing performance degradation... so we have a window of 10 hours to do it in). Let me throw you in the fact that it's a primary on a standby dataguard... so all newspapers are shipped to the standby site. What I tried was:

    (a) create table TableA_subset in select * from TableA where conditon < = 10000 [returns 30 million lines] - it took more than 10 hours... was to kill him
    (b) export using datapump with a query condition [query = "where conditon < = 10000"] the lines I wanted to keep - he ran for more than 10 hours... was to kill him

    given the backup site turns impossible disconnection (since rebuiliding that Eve will take much too long)... Really, I have only 10 hours to get there... and I could not... AND the table continues to grow... Suggestions as to how I can get these data, truncate the existing table and return the table to the table of origin would be greatly appreciated. I tried loading direct path (despite sleep)... Help, please

    JG, in my view, that there is a value of the consideration. This approach would reduce the load on the existing production server I/o. This should be feasible, as long as the test system is the same version and running on hardware of compatiable.

    HTH - Mark D Powell.

  • Display the data in the row selected in a table

    Hello

    I searched for any thread containing my question, but I find no related posts. So I'm posting here

    I have a table that is bound by a VO object. I also have a box that has OutputTexts that are related to the attributes of the same object of the VO. My question is, can display us the data in the row of the table selected in the Panel without programming box? If so, how? Otherwise, what is the best way to achieve this programmatically?

    Thank you very much

    Hello

    If in the table, you have a column with a component that has the value = "#{rank." DepartmentId}"(OR" #{row.bindings.DepartmentId.inputValue} ')
    to view the DepartmentId field text outside the table, you must value = "#{bindings." DepartmentId.inputValue}.

    You can use the Drag Drop to do this, but make sure that in the line of page definition. DepartmentId is related to the iterator as well as links. DepartmentId.

    Gabriel.

  • Confusion in the order of line and statement-level trigger

    Hi can anyone tell me, if I create a trigger on the emp table as in order...

    BEFORE INSERTING... LINE LEVEL
    BEFORE INSERTING... LEVEL STMNT
    AFTER INSERTING... LINE LEVEL
    AFTER INSERTING... LEVEL STMNT


    that will be the order of execution of the trigers?
    How oracle will decide order?

    Please give me some documents related to the order of execution of triggers... thnx in advance... !

    PC says:
    Hello.. Obtained response on the order of... but 1 weird point I m feeling that

    in the case of, before insertion... stmnt fire triger level 1 then insert before... line.

    but in the case of after insert... fireing level trigger line then 1 after insertion... stmnt level...

    can you explain this also...

    Why is it so strange.

    You have a statement that you are running.

    The first possible thing is that you are 'before' the statement.

    The next thing that is possible is that the statement is executed for each line.

    So for each line, there is a 'before' to each line and a point "after" each line.

    Once the statement is executed, you are 'after' the statement.

    Thus, it makes sense the statement triggers surrounds education and line triggers are education, and of course 'before' comes before 'after '.

Maybe you are looking for