Ordering children XML records

Hello

I have the following query that retrieves the records in order for a customer.

SELECT XMLAGG)
XmlElement ("customer",
XmlAttributes (id, name)
(select xmlagg)
XmlElement ("Order",
XmlAttributes (o.id AS "O.ID", o.odate as "date")))
orders o
where CUSTOMER.ID = O.CUSTID
),
(select xmlagg)
XmlElement ("Order",
XmlAttributes (o1.id AS "O1.ID", o1.odate as "O1.date")
) )
of new_orders o1
where CUSTOMER.ID = O1. CUSTOMERID
)
)
).extract('/*') xml
of the customer
/


Output
---------------------------------------------
< customer ID = "100" NAME = "ANN" >
< O.ID = "2000 order" date = "2010-02-10" / > "
< O.ID = "6000 order" date = "2010-02-10" / > "
< O.ID = "12000 order" date = "2010-02-10" / > "
< O1.ID = "2000 to order' O1.date ="2010-02-10"/ >"
< O1.ID = "6000 to order' O1.date ="2010-02-10"/ >"
< O1.ID = "12000 to order' O1.date ="2010-02-10"/ >"
< / customer >
< customer ID = "300" NAME = 'JACK' >
< O.ID = "9000 order" date = "2010-02-10" / > "
< O1.ID = "9000 to order' O1.date ="2010-02-10"/ >"
< / customer >

I want to order records to be sorted by o.id and o1.id for an example of customer.for


< customer ID = "100" NAME = "ANN" >
< O.ID = "2000 order" date = "2010-02-10" / > "
< O1.ID = "2000 to order' O1.date ="2010-02-10"/ >"

< O.ID = "6000 order" date = "2010-02-10" / > "
< O1.ID = "6000 to order' O1.date ="2010-02-10"/ >"

< O.ID = "12000 order" date = "2010-02-10" / > "
< O1.ID = "12000 to order' O1.date ="2010-02-10"/ >"
< / customer >

< customer ID = "300" NAME = 'JACK' >
< O.ID = "9000 order" date = "2010-02-10" / > "
< O1.ID = "9000 to order' O1.date ="2010-02-10"/ >"
< / customer >


The pointers will be appreciated.
SQL> alter session set nls_date_format='yyyy-mm-dd'
/
Session altered.

SQL> with customer as
(
  select 100 id, 'ANN' name from dual union all
  select 300 id, 'JACK' from dual
),
 orders as
(
  select 2000 id, 100 custid, date '2010-02-10' odate from dual union all
  select 6000 id, 100, date '2010-02-10' odate from dual union all
  select 9000 id, 300, date '2010-02-10' odate from dual union all
  select 12000 id, 100, date '2010-02-10' odate from dual
),
new_orders as
(
  select 2000 id, 100 custid, date '2010-02-10' odate from dual union all
  select 6000 id, 100, date '2010-02-10' odate from dual union all
  select 9000 id, 300, date '2010-02-10' odate from dual union all
  select 12000 id, 100, date '2010-02-10' odate from dual
)
--
--
select xmlagg (
          xmlelement ("Customer",
                      xmlattributes (id, name),
                      (select xmlagg (x order by id)
                         from (select custid, id, xmlelement ( "Order", xmlattributes (id "O.ID", o.odate as "date")) x from orders o
                                union all
                               select custid, id, xmlelement ("Order", xmlattributes (id "O1.ID", o.odate as "date")) from new_orders o) o
                        where customer.id = o.custid))).extract('/*') xml
  from customer
/
XML
--------------------------------------------------------------------------------

  
  
  
  
  
  


  
  
                                                                     

1 row selected.

Tags: Database

Similar Questions

  • Reverse the order of XML DataModel

    I have the code loading items from an RSS feed below. The items are inserted in the reverse order. The attribute sortedAscending did nothing to help. How can I reverse the order in the listview?

    GroupDataModel {
                id: articlesDataModel
                grouping: ItemGrouping.None
            },
    
            // The data source that fills the above model with the articles
            DataSource {
                id: articlesDataSource
                source: ""
                query: "/rss/channel/item"
                type: DataSource.Xml
                onDataLoaded: {
                    articlesDataModel.clear();
                    articlesDataModel.insertList(data);
                }
            },
    

    The problem was with ListView. GroupDataModel returns itemType "item", but ArrayDataModel returns itemType empty by default, so I added this function to the ListView to substitute itemType:

    ListView {
                        id: articlesListView
                        dataModel: articlesDataModel                    function itemType(data, indexPath) {
                            return "item" // use ListItemComponents of type 'item' for every item
                        }
    

    Another option is to detach type: 'point' of ListItemComponent when using ArrayDataModel if you do not plan to use different item types.

    In the data source:

                onDataLoaded: {
                    myIndicator.stop();
                    articlesDataModel.clear()
                    for(var i = 0; i < data.length; ++i)
                    {
                        print("data[i]=" + data[i])
                        articlesDataModel.append(data[i])   // or .insert(0, data[i]) to reverse the order
                    }
                    articlesListView.visible = true;
                }
    

    Model:

            ArrayDataModel {
                id: articlesDataModel
                //grouping: ItemGrouping.None
            },
    
  • Problem with order submit data record for Reporting ATG

    Hi, r. j. Nunes

    I am facing problems with the connection to present newspapers for ATG of the report. The logs for RegistrationFileLogger, SiteVisitFileLogger, UserFileLogger, SegmentFileLogger were successfully getting generated but unable to see the logs for OrderFileLogger during shipment of the order.

    I understand that the/atg/reporting/datacollection/trade/SubmitOrderEventListener of the listener must be notified so that the listeners of corresponding data is called in the order:

    SubmitOrderEventListener-> OrderLogEntryQueueSink-> OrderLogEntryGenerator-> OrderFileLogger

    and newspapers would be written.

    But I'm not able to determine which component notifies the SubmitOrderEventListener by submitting an order.


    Is - this SendFulfillmentMessage component? But SendFulfillmentMessage sends the message to the localdms topic: / local/realization/LocalSubmitOrder on the port of OrderSubmitPort which as component SubmitOrderEventListener listen the subject localdms: / local/realization/LocalSubmitOrder on the DEFAULT port?


    Could someone please clarify.

    Thank you

    Saud

    Hello

    Pipelinelink = "sendFulfillmentMessage" name has been commented to our commercepipeline.xml that we did not use OOTB Presse. Once I removed the comment, sent messages and newspapers to submit order got generated.

    Thank you

    Saud

  • A loop in the Variable XML records!

    Hello

    I get no way how to do this. I get the XML below from a custom component of DSC. Now, I need to treat it.

    <root>
        <records total_records="4">
            <record>
                <jobno>1122</jobno>
                <cust_name>Abhinav</cust_name>
                <email>[email protected]</email>
                <stat>1</stat>
            </record>
            <record>
                <jobno>2233</jobno>
                <cust_name>Doctor Dhober</cust_name>
                <email>[email protected]</email>
                <stat>0</stat>
            </record>
            <record>
                <jobno>4666</jobno>
                <cust_name>Vinau Dubey</cust_name>
                <email>[email protected]</email>
                <stat>1</stat>
            </record>
            <record>
                <jobno>7677</jobno>
                <cust_name>Nelesh Poda</cust_name>
                <email>[email protected]</email>
                <stat>0</stat>
            </record>
        </records>
    </root>
    
    

    Now, I have to loop through each record & to do something for each of them. In my approach, I must send a mail to each user in the XML file. I tried using the Set selector to SET the node VALUE, but without success. Any help.

    Thank you.


    -

    Afonso

    Your xpath does not match your XML code - you're missing the root node in your xpath expression:

    Expression: /process_data/myXML/records/record[1]/email
    

    must be:

    / process_data/myXML/root/records/plug [1] / email

    When you build your loop there is another thing to be careful.  If you evaluate a variable xpath within another xpath expression, it gets inserted string.  This happens even if the variable is an integer.  For example: if I have a whole variable counter that is equal to 3 and evaluate:

    / process_data/myXML/root/Records/record [/process_data/@counter] / email the xpath expression will insert "3" (a string) and not an integer, as you can imagine.  The result will not be the third node. This can be a source of frustration, and it's difficult to debug.

    Instead, use the number inside the expression:

    / process_data/myXML/root/Records/record [number (/process_data/@counter)] / email

    I've attached an example of process that shows this.

  • Selection children XML with namespaces

    I'm trying to select children of an XML element nodes that have a different namespace of the parent, but xml.child (name) returns an empty list.

    In the attached code, londonList contains a single XML element and parisList is empty. I can't figure out how to find the child of paris and we tried to add the prefix to findParis (so it's "ff: b") as well as to transform an XML object with the name 'b' findParis to add namespace ff, then passing to the child. None of those who worked.

    Any help is appreciated.

    I found the solution. the child() method uses namespace by default to search for the element name. Because I couldn't understand how to specify a different namespace in the method call, just set default namespace before calling children to the namespace of the element.

  • children XML loadClip

    loadClip does not... What is the reason for this:

    trace (nodes Sublst.ChildNodes(1).ChildNodes(0) [1] .firstChild); / / images/IMG_01.jpg

    loadClip (nodes
    Sublst.ChildNodes(1).ChildNodes(0) [1] .firstChild, mc); does not work

    loadClip ("images/IMG_01.jpg", mc); works


    If I had to use loadMovie it would work... but I need to use loadClip because I need listeners.
    In other words, if I used loadMovie, so I could just make a loop and loads all at the same time... but I need to load them one at a time, in order.

    Wow this post was earlier
    Since then, I learned a lot about xml, php, and how to use them with flash.
    I ended up building the .xml differently in php file
    attributes.URL used for the path.
    Its funny watching this code now... I can't believe that it works.
    Anyway, here is the part of the code very sloppy.

  • order alphabetical xml filled dynamic textfields

    I'm looking to get a dynamically created alphabetical sorting textfield created using a for each loop and XML.

    How would I go about this, I searched and there of not much to this topic, and now I feel like I don't have a clue. The post that I found is absent from its own created utilities class (I think):

    http://help.mfazio.com/?p=75 & cpage = 1 #comment-39.

    So where I even start?

    Thanks for any help in advance! I'm still learning explain so much more you more I learn (thank you).

    Add your textfields in a table and sorting using a custom sort function:

    After that text is assigned:

    var tfA:Array = [textfields table];

    tfA.sort (sortByText);

    function sortByText(tf1:TextField,tf2:TextField):int {}

    If (tf1.text<>

    Returns - 1;

    } else {if(tf1.text>tf2.text)

    Return 1;

    } else {}

    return 0;

    }

    }

  • Order insertion of records using forms

    Hello

    (forms6i)

    I datablock, without querying the database records, I enter some values and try to save.
    In case if one of the input files already exists in the database, I should stop the insertion and the cursor must be on the document that repeats.

    I tried on_insert trigger as
    declare
         alno number;
         cnt number;
    begin
         
    select count(fname||','||lname) into cnt
    from teacher_dup where 
    fname||','||lname =:fname||','||:lname;
    
    if cnt >0 then
         set_alert_property('alert1',alert_message_text,'The record already exists in the database');
         alno := show_alert('alert1');
         rollback;
         raise form_trigger_failure;
    else 
         INSERT_RECORD;
    --     :fname:=null;:lname:=null;:tid:=null;
         
    end if;
    
    end;
    Work of Jose, but shows the error message like
    ROLLBACK_NR-INSERT Trigger small FRM-40737 illegal procedure.

    What I do is correct?

    Also if a 3-disc set, user tries to insert
    The only record is violating primary key constraints, then I don't want to save documents in the table.
    But the above procedure saves the other records, except the one that violates.

    How can I control that?

    Thank you

    Adkins,

    Try the code in the trigger PRE_INSERT ON_INSERT trigger INSTEAD of below.

    declare
         alno number;
         cnt number;
    begin
    
    select count(fname||','||lname) into cnt
    from teacher_dup where
    fname||','||lname =:fname||','||:lname;
    
    if cnt >0 then
         set_alert_property('alert1',alert_message_text,'The record already exists in the database');
         alno := show_alert('alert1');
         raise form_trigger_failure;
    end if;
    
    end;
    

    I hope this helps.

    Kind regards

    Manu.

  • Thank you, we have received your payment, thank you! Here are the details of this order for your records: Order Details: order #AD007239928AU Creative Photography Cloud plan (one year) $ 9.99 per month Tax/VAT: a Total of $0.00 today payment: a $9.99

    I paid for a subscription during the transfer of the Club Photo Dollar to you people and had transferred 13 at the same time

    I then paid monthly fees and didn't have my downloads, they said that I had them, but I don't because they were paid and transferred fronm the dollar photo club please help

    This is an open forum, not Adobe support... below to connect with Adobe personnel to help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Invoice PDF and order Conversion to XML/EDI?

    Hello.

    My company gets a lot of PDF documents that we enter because they do not come in via EDI.

    I wonder if anyone has found a good way to convert PDF documents such as invoices and purchase can be used in EDI orders (IE XML, X 12 TEU). Please do not say use one of the free converters, I tried them and they are not even close to what I need. Also save it as an XML options do no good either.

    I'm looking for a "smart" converter, who knows where the data is and can create a XML properly formatted to import in our ERP system. I know that this may be asking a lot, but I thought I'd see if anyone had useful advice or was aware of certain software or services out there for this.

    TIA - Samuel.

    I am currently the research myself for my business... There are a few translations out there I found. Try these.

    P2E2 - they look good, but are primarily focused on the PDF to Excel conversion. I wasn't able to talk to anyone there.

    ChimpKey - they seem to have the presence more regarding the conversion of the invoices & purchase orders. They also do a lot of commercial invoices for brokers. They were quite reasonable for fees and there is no contract to sign.

    ConvProSys - they seemed very inexpensive, but I'm still waiting to find out if there is a minimum period of contract to be signed + installation costs.

    I hope that helps out.

    j /.

  • XML: Apending children

    Let's say that the following XML:
    < list >
    < item > < / item >
    < item > < / item >
    < / list >

    Now in ActionScript, if I have to loop through all the children and you are trying to add text nodes in each node as for

    (pseudocode)

    children = xml.children ();
    for (i = 0; i < children.length (); ++ I)
    {
    children .appendChild ("test" + i);
    }

    What is happening here is the two nodes updated twice. It seems that the XML code adds the child to all nodes of the same name. So now my XML looks like this:

    < list >
    < element > test1 test2 < / item >
    < element > test1 test2 < / item >
    < / list >

    What I want to do is the following:
    < list >
    Test1 < item > < / item >
    Test2 < item > < / item >
    < / list >


    Is this possible or is the XML in ActionScript borked?

    Hmm, I see now that rather than managing multiple xml nodes, flex prefer to group similar nodes in a single table. I'm not particularly fond of that it goes against how to work with XML in other languages and platforms, but I can live with that for now.

    As a solution, I'm deleting duplicate nodes and instead adding children to the same kids over and over again. If the result is as follows:



    Item1
    Item2
    Item3
    ...

    In the action script, I have to do the following to access these text nodes:

    list.item.getChildren () [index];

    I guess that's not bad. He worked my way, the only difference would have been:

    List.Item [index]

    So, there is a further step involved. Maybe, I'll just write a wrapper which will do that for me.

    If anyone wants to share their comments on this, please do. Meanwhile I'll label has responded to this topic.

  • Helps the Parseing XML

    Version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

    Hello

    I need assistance with an XML file to generate lines to insert into a table staged for further processing.

    There is an XML document that is loaded into a table in the database via a Web Service call.

    I need to query this table to get the XML code, loop through it to create folders, with the fields in a specific order and insert records into a table of staging.

    There are two columns that are not in the XML that are added during the process. I am including these tables as well.

    I know it is a bunch of "stuff", but I hope I've provided enough information to get help.

    The tables and insert queries:

    -This table contains the XML of the Web Service call

    CREATE TABLE exam_results
    (
    CLOB results_clob
    );

    INSERT INTO exam_results (results_clob)
    VALUES
    ("< result > < candidate > < ProgramCandidateID > 911221 < / ProgramCandidateID > < LastName > V361208 < / LastName > < FirstName > J361208 < / FirstName > < / candidate > < event > < ended > 1 < / filled > < CompleteDate > 2011 - 08 - 05T 10: 23:42.957 < / CompleteDate > < FormName > SSU11-05 < / FormName > < NumStarts > 2 < / NumStarts > < ProgramRegistrationID > SU0006510JV < / ProgramRegistrationID > < result > 564865 identifier < / result identifier >") < Sponsor > MySponsor < / sponsor > < StartTime > 2011 - 08 - 05T 08: 22:47.877 < / StartTime > < TestName > SSU11 < / TestName > < / Event > < start > < Start > < BrowserVersion > 8.0 < / BrowserVersion > < OperatingSystem > Windows NT 4.0 < / OperatingSystem > < / Start > < / begins > < Scores > < issues > < > < name > 105103 < / name > < SeqDelivered > 1 < / SeqDelivered > < response > 1 < / response > < key > 4 < / key > < seconds > 169.126 < / seconds > < Section > 1 < / Section > < / Question > < Question > < name > 261292 < / name > < SeqDelivered > 2 < / SeqDelivered > < answer > 3 < / response > < key > 3 < / key > < seconds > 97.984 < / seconds > < Section > 1 < / Section > < / Question > < Question > < name > 261241 < / name > < SeqDelivered > 3 < / SeqDelivered > < response > 3 < / response > < key > 3 < / key > < seconds > 87.579 < / seconds > < Section > 1 < / Section > < / Question > < Question > < name > 261451 < / name > < SeqDelivered > 4 < / SeqDelivered > < answer > 3 < / response > < key > 3 < / key > < seconds > 59.983 < / seconds (> < Section > 1 < / section > < / Question > < Question > < name > 264373 < / name > < SeqDelivered > 5 < / SeqDelivered > < response > 5 < / response > < key > 1 < / key > < seconds > 86.346 < / seconds > < Section > 1 < / Section > < / Question > < / Questions > < / Scores > < / result > ');

    -This table is to get 1 of the additional columns that must be included

    CREATE TABLE tracking_id_tbl
    (
    tracking_id NUMBER,
    customer_id NUMBER,
    launch_code VARCHAR2 (11)
    );

    INSERT INTO tracking_id_tbl (tracking_id, customer_id, launch_code)

    VALUES (557,2296267, 'SU0006510JV');

    -This table is to get the other extra column which must be included

    CREATE TABLE school_code_tbl
    (
    customer_id NUMBER,
    nb_id NUMBER,
    organization_id VARCHAR2 (8)
    );

    INSERT INTO school_code_tbl (customer_id, nb_id, organization_id)

    VALUES (2296267,911221, '12');

    -This table will receive the file created from the XML

    CREATE TABLE staging_tbl
    (
    results_data VARCHAR2 (4000)
    );

    To facilitate the XML file to read (we hope) here is a formatted version:

    < result >

    < candidate >

    < ProgramCandidateID > 911221 < / ProgramCandidateID >

    < name > V361208 < / LastName >

    J361208 < FirstName > < / name >

    < / candidate >

    < event >

    < finish > 1 < / completed >

    < completeDate > 2011 - 08 - 05T 10: 23:42.957 < / CompleteDate >

    SSU11-05 < FormName > < / FormName >

    < NumStarts > 2 < / NumStarts >

    < ProgramRegistrationID > SU0006510JV < / ProgramRegistrationID >

    ID of < result > 564865 < / ID results >

    < sponsor > MySponsor < / sponsor >

    < StartTime > 2011 - 08 - 05T 08: 22:47.877 < / StartTime >

    SSU11 < TestName > < / TestName >

    < / event >

    < start >

    < start >

    < > 8.0 BrowserVersion < / BrowserVersion >

    < OperatingSystem > Windows NT 4.0 < / OperatingSystem >

    < / start >

    < / starts >

    < scores >

    < questions >

    < question >

    < name > 105103 < / name >

    < SeqDelivered > 1 < / SeqDelivered >

    < response > 1 < / answer >

    < Key > 4 < / key >

    < seconds > 169.126 < / seconds >

    article <>1 < / Section >

    < / question >

    < question >

    < name > 261292 < / name >

    < SeqDelivered > 2 < / SeqDelivered >

    < response > 3 < / answer >

    < Key > 3 < / key >

    < seconds > 97.984 < / seconds >

    article <>1 < / Section >

    < / question >

    < question >

    < name > 261241 < / name >

    < SeqDelivered > 3 < / SeqDelivered >

    < response > 3 < / answer >

    < Key > 3 < / key >

    < seconds > 87.579 < / seconds >

    article <>1 < / Section >

    < / question >

    < question >

    < name > 261451 < / name >

    < SeqDelivered > 4 < / SeqDelivered >

    < response > 3 < / answer >

    < Key > 3 < / key >

    < seconds > 59.983 < / seconds >

    article <>1 < / Section >

    < / question >

    < question >

    < name > 264373 < / name >

    < SeqDelivered > 5 < / SeqDelivered >

    < response > 5 < / answer >

    < Key > 1 < / key >

    < seconds > 86.346 < / seconds >

    article <>1 < / Section >

    < / question >

    < / questions >

    < / scores >

    < / result >

    This XML file is for 1 card. There are several issues that are in the file. I reduced to only 5 is easier to see.

    The layout of the document to be inserted in the staging table is:

    Event.TestName

    Event.FormName

    Event.CompleteDate

    v_tracking_id

    Event.ProgramRegistrationID

    Event.StartTime

    Event.CompleteDate / * end * /.

    Candidate.LastName

    Candidate.FirstName

    Candidate.MiddleName (the middle name does not exist in the file XML then return null)

    Candidate.ProgramCandidateID

    v_school_code

    Candidate.CustomProperties.Answer (this does not exist in the file XML then return null)

    Event.ResultID

    Event.NumStarts

    Event.Completed

    Event.Sponsor

    Scores.Questions.Question.Name

    Scores.Questions.Question.Section

    Scores.Questions.Question.SeqDelivered

    Scores.Questions.Question.Key

    Scores.Questions.Question.Answer

    Scores.Questions.Question.Seconds

    Starts.OperatingSystem

    Starts.BrowserVersion

    The expected output is:

    INSERT INTO staging_tbl (results_data)
    VALUES ('SSU11,SSU11-05,08/05/2011,557,SU0006510JV,08:22:47,10:23:42,V361208,J361208,,911221,12,,564865,2,1,MySponsor,105103,1,1,4,1,169.126,Windows NT 4.0,8.0");

    INSERT INTO staging_tbl (results_data)
    VALUES ('SSU11,SSU11-05,08/05/2011,557,SU0006510JV,08:22:47,10:23:42,V361208,J361208,,911221,12,,564865,2,1,MySponsor,261292,1,2,3,3,97.984,Windows NT 4.0,8.0");

    INSERT INTO staging_tbl (results_data)
    VALUES ('SSU11,SSU11-05,08/05/2011,557,SU0006510JV,08:22:47,10:23:42,V361208,J361208,,911221,12,,564865,2,1,MySponsor,261241,1,3,3,3,87.579,Windows NT 4.0,8.0");

    INSERT INTO staging_tbl (results_data)
    VALUES ('SSU11,SSU11-05,08/05/2011,557,SU0006510JV,08:22:47,10:23:42,V361208,J361208,,911221,12,,564865,2,1,MySponsor,261451,1,4,3,3,59.983,Windows NT 4.0,8.0");

    INSERT INTO staging_tbl (results_data)
    VALUES ('SSU11,SSU11-05,08/05/2011,557,SU0006510JV,08:22:47,10:23:42,V361208,J361208,,911221,12,,564865,2,1,MySponsor,264373,1,5,1,5,86.346,Windows NT 4.0,8.0");

    The Questions/Question, is what makes a separate line if the values for the other fields would be the same for however many questions is in the XML file.

    That's what I've tried so far:

    DECLARE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             CURSOR get_results_cur
    IS
    SELECT results_clob
    Of exam_results;

    get_results_rec XMLTYPE.
    get_results_clob CLOB.
    NUMBER (38) v_count: = 1;


    v_result VARCHAR2 (32000);
    v_tracking_id tracking_id.tracking_id_tbl%TYPE;
    v_school_code organization_id.school_code_tbl%TYPE;

    BEGIN
    OPEN get_results_cur.
    SEEK get_results_cur INTO get_results_clob;
    CLOSE Get_results_cur;

    get_results_rec: = xmltype.createxml (get_results_clob);

    SELECT tracking_id
    school_code
    IN v_tracking_id
    v_school_code
    OF ti tracking_id_tbl
    JOIN school_code_tbl ON ti.customer_id = sc.customer_id sc
    WHERE ti.launch_code = get_results_rec. EXTRACT ('/ Result/Event/ProgramRegistrationID/text()').getstringval () AND)
    nb_id = get_results_rec. EXTRACT ('/ Result/Candidate/ProgramCandidateID/text()').getstringval ();)

    While get_results_rec. EXISTSNODE ('/ / result [' | v_count |]) ']') = 1
    LOOP
    v_result: =.
    (get_results_rec. EXTRACT ('/ results/event/TestName [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/FormName [' | v_count | / text () ']) .getstringval ())
    || ','
    || ((get_results_rec. EXTRAIT ('/ résultats/événement/CompleteDate [' || v_count || / text () SUBSTR']) .getstringval ()), 1, 10)
    || ','
    || v_tracking_id
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/ProgramRegistrationID [' | v_count | / text () ']) .getstringval ())
    || ','
    || ((get_results_rec. EXTRAIT ('/ résultats/événement/StartTime [' || v_count || / text () SUBSTR']) .getstringval ()), 12.8)
    || ','
    || ((get_results_rec. EXTRAIT ('/ résultats/événement/CompleteDate [' || v_count || / text () SUBSTR']) .getstringval ()), 12.8)
    || ','
    || (get_results_rec. EXTRACT ('/ result/candidate/name [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ result/candidate/name [' | v_count | / text () ']) .getstringval ())
    || ',,'
    || -(get_results_rec. Extract('/result/candidate/MiddleName [' || v_count ||) '] / text () ') .getStringVal ()); ',' ||
    (get_results_rec. EXTRACT ('/ result/candidate/ProgramCandidateID [' | v_count | / text () ']) .getstringval ())
    || ','
    || v_school_code
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/result identifier [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/NumStarts [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/completed [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ results/event/sponsor [' | v_count | / text () ']) .getstringval ());
    || ','

    -Add the results of the first question

    || ','
    || (get_results_rec. EXTRACT ('/ result, departures, Start, OperatingSystem [' | v_count | / text () ']) .getstringval ())
    || ','
    || (get_results_rec. EXTRACT ('/ result, departures, Start, BrowserVersion [' | v_count | / text () ']) .getstringval ());

    v_count: = v_count + 1;

    INSERT INTO staging_tbl (results_data)
    VALUES (v_result);

    END LOOP;
    END;

    What can clear?

    Thank you

    Joe

    You have several questions in the XML, so when flattened document you will have several lines trying to extract in v_result.  Where the error.  You will need to either loop

    for rec in (select... from XMLTable...)

    loop

    insert into staging_tbl...

    end loop;

    or make an insert select

    insert into staging_tbl (results_data)

    Select...

    from XMLTable...

  • Where is stored the location of registry record label?

    When I put a red label on a file that contains xmp metadata, I can retrieve these values later and it will be stored in the file or in a sidecar xmp file.

    But the record cannot have xmp.

    In this case, where is stored this information on the label color of a folder? Only in the cache? Is there a hidden file (like, for example ".") Bridgesort' file hidden for manually sorted items)

    I've noticed that I I label a folder on computer A access a common network, I can retrieve this value from another computer B by rebuilding the file cache of the labeled folder parent.

    It cannot be the C:\Users\[username]\AppData\Roaming\Adobe\Bridge CS6\Cache\data\store file because it is inaccessible by other computers on the network.

    Is therefore must be a hidden file on the same directory of the labeled folder.

    Found.

    Its a hidden xml file created from bridge when I use labels or ratings on children's records.

    It's called "." BridgeLabelsAndRatings ".

    to get to the bridge, just try to use this

    Folder([myPath]).GetFiles ("*.") BridgeLabelsAndRatings"); the name works as a long extension file (the start point is important)

    and this is an example.

    This is updated from other computers on the same local folder network only when the folder cache is re-created.

  • XML with transformation of split

    I'm working on an application to create work orders using the output. The host application sends a batch of work orders in XML format (generated using the Central Migration JFTRANS). The XML contains the customer number. I use Transform to sort the XML entering by customer number. The structure of the XML file is like this:

    < file >

    account <>

    < header >

    < > 1234 custno < / custno >

    < wonumber > < .wonumber > 001234

    < page > 1 < / print this page

    .

    .

    < / header >

    < detail >

    < lineno > 1 < / lineno >

    < itemno > 004444 < / itemno >

    .

    .

    < / details >

    < detail >

    < lineno > 2 < / lineno >

    < itemno > 005555 < / itemno >

    .

    .

    < / details >

    < header >

    .

    < / header >

    < detail >

    .

    < / details >

    < / recording >

    account <>

    .

    < / recording >

    < / file >

    I tried to use the option "Generate multiple streams" of output/throws to divide the result by the customer. Unfortunately, 'generate multiple streams' offers only split on "record", not based on the content. I need to generate an output file for each client, which could have multiple work orders, each with 1 - n pages.

    The activity of the Foundation/Transform does not have the functionality to define an XML shared via XSLT.

    Did anyone done this before?

    Thank you!

    You are welcome Alex.

    Since it is a recurring demand on the forum I put in place the attached PDF file. The PDF document describes a technique to divide a XML document using XSLT and includes the following parts: a .lca of the ES2, an example of XML and XSL document included in the process.

    If you have any questions or comments please email [email protected].

    Thank you

    Steve

  • Horizontal display of parents/children/grandchildren on model problems

    Hello

    I'm trying to display horizontally records children/grandchildren on my model. I can see the children/grandchildren records but not the Parent. I'm sure it's an easy fix, but it escapes me.

    I can send the template file and .xml .rtf to all those who would like to enlighten me.

    Thank you.

    Send it to my id profile.

Maybe you are looking for

  • Where can I find the themes I downloaded. They are not in the page more modules.

    They aren't in the appearance tab more as they were before. How can I change my themes now.

  • Satellite Pro S500 - 11 c - lack of driver Intel engine Interface

    Hello I had a Satellite Pro S500 - 11 c Windows 7, I see an unknown device in the information system. The missing driver appears on PCIdatabase.com as Intel Management Engine Interface (MEI) driver, but I can't find it on the Toshiba site, and when I

  • Satellite A80-S178TD 'Pre-boot execution environment.

    I had updated my Microsoft Office this morning, and everything was going well. However, when I try to turn on my laptop, it keeps giving me a message of 'Pre-boot execution environment' and just freeze on this screen. If I hit the power button, the l

  • Maxon motor control with LabView

    Hello everyone, I'm new here and I tried to find out how this process of work for some time and I ran out of options. LabView is very difficult to understand. I'm about to order a controller epos Maxon motor 24/5. I have a vi that does what I do, but

  • Play simple/beep in version 5.0.0?

    Can someone help with the code to play a simple beep/version 5.0.0?  I have acquired a method to alert to work but it comes through the phone's speaker and you can not hear it.  I need to be able to direct sound to the speaker.  I saw this post, but