extract the child records of their specific parent folder

Hi all

The following query shows these records that I wanted to but I want to extract the child records with their specific parent folder for the new scenario. I want to choose which set of these documents that belong to store under inventory.

Select rt.transaction_id, rt.parent_transaction_id parent_id, trunc (rt.transaction_date) receipt_date

(, rsh.receipt_num, rsh.attribute13 grn_num,rt.subinventory,SYS_CONNECT_BY_PATH(rt.subinventory,'/') "road".

of rcv_transactions rt

rcv_shipment_headers rsh

where rt.shipment_header_id = rsh.shipment_header_id

start with rt.parent_transaction_id =-1

connect prior rt.transaction_id = rt.parent_transaction_id

Brothers and SŒURS of ORDER BY rt.subinventory

.

child-parent_records.jpg

Please help to extract.

Hello

If all you want are the lines with sub_inventory = "STORE", and their ancestors, then you can simply do this:

SELECT *.

OF subinventory

START WITH sub_inventroy = "STORE".

CONNECTION BY transaction_id = parent_id PRIOR

ORDER BY transaction_id;

No need of subqueries or analytical functions.  You can even no need for the ORDER BY clause.

Tags: Database

Similar Questions

  • A-team Mobile persistence Accelerator - Insertion into the child records for a Parent-child data objects

    Hello team

    We use persistence Mobile Accelerator for our application of MAF. We must build couple of REST services for it (Fetch, Create, Update), problem is we are able to insert/update of the parent records but we are not able to create child records.

    It seems when we ask the operation of creation in the book of the child, is no new line for child is created.

    Here is the screenshot of the data control wizard:

    parent.pngchild.png

    Here is the task (update) and desktop (create) JSON format (TaskAssignment is the address of the child)

    PUT the task:

    {

    'Task': {}

    'ACTIVITY_ID': 100,.

    'PROJECTID': 100,.

    'ACTIVITY_NAME': "string",.

    'DESCRIPTION': 'string ',.

    'PARENT_ACTIVITY_ID': 100,.

    'STATUS': "string",.

    'PRIORITY': "string",.

    'PERCENTAGE_COMPLETE': 100,.

    "START_DATE": "2008-09 - 28 T 21: 49:45.

    "END_DATE": "2014-09 - 18 T 19: 18:33.

    'ETA': ' 2006-08 - 19 T 13: 27:14 - 04:00 ",".

    'ESTIMATED_HOURS': 100,.

    'ACTUAL_HOURS': 100,.

    'OWNER_USER_ID': 100,.

    'CREATED_BY': "string",.

    "CREATION_DATE': ' 2009-05 - 16 T 08: 42:28"

    'LAST_UPDATED_BY': 100,.

    'LAST_UPDATE_DATE': ' 2003-08 - 08T 20: 18:37 - 04:00 ",".

    "TaskAssignment": [{}

    'ASSIGNMENT_ID': 1000.00.

    'PROJECT_TEAM_MEMBER_ID': 1000.00.

    "START_DATE": "2012-09 - 13 T 09: 00:34 - 04:00", ".

    "END_DATE": "2009-10 - 14 T 03: 16:36."

    'CREATED_BY': "string",.

    'CREATION_DATE': ' 2010-03 - 18 T 12: 05:32.

    'LAST_UPDATED_BY': "string",.

    "LAST_UPDATE_DATE": "2018-12 - 28 T 14: 51:14 - 05:00", ".

    'FAVORITE_FLAG': "string".

    } ]

    }

    }

    Workstation:

    {

    "Task": [{}

    "ACTIVITY_ID": 1000.00.

    'PROJECTID': 1000.00.

    'ACTIVITY_NAME': "string",.

    'DESCRIPTION': 'string ',.

    'PARENT_ACTIVITY_ID': 1000.00.

    'STATUS': "string",.

    'PRIORITY': "string",.

    'PERCENTAGE_COMPLETE': 1000.00.

    "START_DATE": "2008-09 - 28 T 21: 49:45.

    "END_DATE": "2014-09 - 18 T 19: 18:33.

    'ETA': ' 2006-08 - 19 T 13: 27:14 - 04:00 ",".

    'ESTIMATED_HOURS': 1000.00.

    'ACTUAL_HOURS': 1000.00.

    'OWNER_USER_ID': 1000.00.

    'CREATED_BY': "string",.

    "CREATION_DATE': ' 2009-05 - 16 T 08: 42:28"

    'LAST_UPDATED_BY': "string",.

    'LAST_UPDATE_DATE': ' 2003-08 - 08T 20: 18:37 - 04:00 ",".

    "TaskAssignment": [{}

    'ASSIGNMENT_ID': 1000.00.

    'PROJECT_TEAM_MEMBER_ID': 1000.00.

    "START_DATE": "2012-09 - 13 T 09: 00:34 - 04:00", ".

    "END_DATE": "2009-10 - 14 T 03: 16:36."

    'CREATED_BY': "string",.

    'CREATION_DATE': ' 2010-03 - 18 T 12: 05:32.

    'LAST_UPDATED_BY': "string",.

    "LAST_UPDATE_DATE": "2018-12 - 28 T 14: 51:14 - 05:00", ".

    'FAVORITE_FLAG': "string".

    } ]

    } ]

    }

    Please let me know if I missed all the details.

    Waiting for answer!

    Thank you

    Diprish

    Massari,

    Task.Java seems good. The question is: how to create the new instance of task assignment in the UI?

    That's what you do: you must use the create operation standard of the palette of the title of the collection of nested task assignment data control. Thus, enrich the collection of task, the collection taskAssignment nested in the task, expand the node of the operations and drag and drop the operation of creation on your page. This should add the new instance to the collection of the current task task assignment. To make sure that this is the case, set a breakpoint in the addTaskAssignment method in Task.java. Then, when you save the parent task, load useful json must include a table nested with the new task assignment.

    Steven Davelaar,

    Oracle Mobile A-team.

  • doubt everything by removing the child records

    Hi people,
    I have a table with following structured Teg.

    SQL > DESC TEG
    Name Null? Type
    ----------------------------------------------------- -------- ---------------
    A NON NULL NUMBER (38)
    B NUMBER (38)
    C NUMBER (38)


    where A column is the primary key column and column B is foreign key
    According to column A column.


    SQL > select * from teg.

    A, B AND C
    ---------- ---------- ----------
    10 10 30
    20 10 40
    30-20-90

    now, these are the data present in this table.now I want to delete a recording of teg, where A = 10.but I couldn't do because I have child records according to values.so primary key, I decided to delete records by using the statement.

    SQL > delete from the teg where b = 10;
    Remove from the teg where a = 10
    *
    ERROR on line 1:
    ORA-02292: integrity constraint (VID. TEGFK) violated - book of the foundling

    but throws with this error.then I tried to remove another
    Save the Declaration,

    SQL > delete from the teg where b = 20;

    1 line removal.

    but I got that last removed the table.why file I couldn't remove data using State 'WHERE B = 10'.but able to delete the record
    with "WHERE even if the parent record is A found.pls = 20' help me."


    Concerning
    VIDS

    vidusnat wrote:
    SQL > SELECT * FROM TEG.

    A, B AND C
    ---------- ---------- ----------
    10 10 30
    20 10 40
    30-20-90

    as I could delete record of TEG by issuing,

    REMOVE FROM THE TEG WHERE B = 20;

    Yes, this means that you remove a record of a value in column A of 30 (for B = 20) - there is no trace of the child who refers to this record with a value in column A of 30, so you can REMOVE that record without problem.

    vidusnat wrote:

    But why I couldn't delete records to aid,

    REMOVE FROM THE TEG WHERE A = 10;

    10 and 20 are present in the primary key column A.but why am not able to delete the address of the child column B.I don't know no other integrity constraints have been create except between column A and B.pls suggest me.

    There must be a record in the referencing table that has a foreign key value 10 - don't forget on the deletion of a record of the child in column B, you can delete an entire record, not a partial record. The table that references must be another table, it is not another column in the same table -it does not work like that. A foreign key between tables , not within the same table.

    Run this code, and you'll see what other table of the foreign key means:

    SELECT table_name
       FROM ALL_CONSTRAINTS
     WHERE CONSTRAINT_NAME  = 'TEGFK'
    

    That will tell you the other table that has a foreign_key associated with your table TEG.

  • Web Services activity problem insert with a link to the child records contacts

    Hi - I am using WS 2.0 to insert a new activity and bind it to a list of contacts. I converted this to 1.0 of WS. It works fine without contact, the linking of code but fails with the following message when linking to contact records...

    Update operation on the 'Activity' integration component failed because no record corresponding in the 'Action' business with the specification of the research component "[Description] = 'Test2' ' could be found." (SBL-EAI-04403)

    Here is a simplified version of the code in question...

    activity2. Law on activity is new activity2. Activity();
    Act. URL = cs.crmSessionUrl;
    activity2. Entry ActivityInsert_Input = new activity2. ActivityInsert_Input();
    entry. ListOfActivity is new activity2. ListOfActivityData();
    entry. ListOfActivity.Activity is new activity2. ActivityData [1];
    entry. ListOfActivity.Activity [0] = new activity2. ActivityData();
    entry. ListOfActivity.Activity [0]. Object = "Test2."
    entry. ListOfActivity.Activity [0]. Activity = "Task";
    entry. ListOfActivity.Activity [0]. Status = "done";
    entry. ListOfActivity.Activity [0]. Type = "Email";
    entry. ListOfActivity.Activity [0]. DueDate = DateTime.Parse (DateTime.Now.ToString ("dd/mm/yyyy hh: mm; :")) "))
    entry. ListOfActivity.Activity [0]. AccountId = "AEGA-BGV8Z9";
    entry. ListOfActivity.Activity [0]. ListOfContact is new activity2. ListOfContactData();
    entry. ListOfActivity.Activity [0]. ListOfContact.Contact is new activity2. ContactData [1];
    entry. ListOfActivity.Activity [0]. ListOfContact.Contact [0] = new activity2. ContactData();
    entry. ListOfActivity.Activity [0]. ListOfContact.Contact [0]. ID = "AEGA-CCMEWM";
    activity2. ActivityInsert_Output output is law. ActivityInsert (input);

    Any suggestion would be great!

    Try using run instead.


    xmlns:ns = "" urn: crmondemand/ws/ECB/activity/10/2004 ""
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xmlns:WSSE = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd".
    xmlns = "" urn: / crmondemand/xml/activity/Data ">"



    yourusername
    yourPassword







    Test7
    ALA-5KC0OV
    E-mail
    Completed
    Task


    AALA - 5851K 0











    2012-06-07 T 01: 00:09Z
    2012-06-07 T 01: 00:09Z
    ALA-583LBZ
    ALA-583LBZ
    1
    ALA-5TG95O
    Services Web administrator, 06/06/2012 18:00:09
    Services Web administrator, 06/06/2012 18:00:09


    2012 03-19 T 20: 19:55Z
    2012 03-05 T 21: 43:14Z
    ALA-583LBZ
    ALA-583LBZ
    79
    AALA - 5851K 0
    Web Services Administrator, 05/03/2012-13:43:14
    Web Services Administrator, 05/03/2012-13:43:14






  • Programmatic access to the child records

    Hello

    I'm under JDeveloper Studio Edition Version 11.1.2.3.0.

    I have two points of view bound by a link. The views and links are based on underlying entities and an Association between the two entities. I saw link and accessors Association set on both sides of the view link and Association relationship.

    The views are defined in my application Module data model in a relationship Master-View.

    My Module of the Application, I need to loop through the mask mode and for each line, each line of the detail view updated. The master and detail must have applied ViewCriteria.

    I have not read the google docs, but found mixed approaches.

    Suggestions that an examples would be much appreciated.

    Published by: user576183 on October 5, 2012 10:21

    When set you the display link, you must set accessor also Destination (tab relationships link attributes).
    After this, display line class generate for master VO (tab Java)
    In this class, you should have something like this:

        /**
         * Gets the associated RowIterator using master-detail link ....
         */
        public RowIterator geDetails() {
            return (RowIterator)getAttributeInternal(....);
        }
    

    That's what you need to visit all of the details of the current master.

  • How to share a specific subfolder located under the share main parent folder?

    Hi all

    My concern is as below:

    say there are the users "User1" and "user2". main parent folder say "finance" and finance has 3 subfolders 'accounts', 'buy' and 'delivery '.

    now that I have shared a folder main parent of finance both users user1 and user2.

    but 1 2 records must be consulted by user1 (accounts and purchase) and 2 last folder must be consulted by user2 (purchase and deliveries).

    Is there a way to allow this when I share the folder main parent at the same time user?

    conclusion: How can I restrict access to subfolders under main shared folder to the user?

    waiting for the answer and appreciate the prompt and perfect answer for my query.

    Thank you

    Sandesh

    There is no as good as now the two folders are inheriting the same authority as their parent folder, so all of the permissions that you apply to the top folder will be applied automatically to those below him. When you customize the subfolder permissions, they will be is be inheriting the same permissions and will have their own.

  • Responsive HTML5 with mergedprojects, creates a hyperlink to a file in the project html parent to a child html file and it does not work! The child has with the parent TOC, but need to tie. Help, please!

    Hi group!

    I have a brilliant parent project that serves as a springboard for other projects. Users click a component of software they want and are redirected to a page with a list of all the documentation available for this component. Click on the name of a document and access - a lot of PDF files. BUT I also wish they were able to tie the online help for the component. After having read up on the link through / between projects, I knew that I needed to create a parent project (for the page intro and links brilliant) and projects for children (for software components).

    THEN

    I created a parent sensitive HTML5 project and the projects of two children. I compiled the parent to create mergedprojects files, and then open the projects children and collected to the appropriate mergedprojects folder. I then created a hyperlink to the file list html documentation in the project parent towards the child file software component html (output folder and start page [which is the same as the default theme]) and the link does not work! The child and its table of contents appears in the parent TOC so topics are here, but I can't link to them. If necessary, I can send screenshots.

    Where I am dorking this place?

    Thanks in advance for your time and help!

    Scottie 'needs help' gear

    What is your relationship like? And how did you create the link?

    A typical reactive merged help is structured as follows:

    index.htm (Master home page)

    mergedProjects

    childName

    index.htm (starting page for child)

    A child from the index.htm page link would look like this:... /... index.htm

    Kind regards

    Willam

  • With the help of the child in the executable class

    I'm kinda stuck and don't know how to solve and could not find a solution online.

    I have a parent class and its children to the class. The child class only overrides a method, but not the run method. I want to compile the executable project, where the run method is called, but the class type is the child, not parent. How to do this?

    I tried three things, but all in vain:

    (1) in the build properties when I select start VI the run method of the parent, I get in the executable the parent, not the child's class class. It's logical. However, I couldn't find the option to use the child as a type's class.

    (2) when I add the run method of the child class and appeal to parents, I get two windows pop up. The run of the parent and the child method. Too many. Even if for the class child run method (see below the block diagram of a child, red run method's parent), I put not to show the façade when it is called in the properties of VI.

    (3) when I tried with a separate VI calling the run method of the parent class, but the class type is the child, I get the façade of this separate VI and the run method of the parent. See below (Blue class is child, red of parent).

    In both cases 2 and 3, I chose to put the checkbox 'See the façade when it is called' a FAKE, but still the front panels appear.

    Someone don't know either: i) the use in the executable version of the options to generate an executable when a different class method is used, or ii) when you compile an executable file with a certain start VI, to not show this starting VI?

    I understand if I say "you want to configure the RUN method of the class as 'start-up VI' in the EXE file, but it should run the RUN method for a child object"?

    If this is correct, your third approach is the right one. This new boot VI is often used as 'Splash Screen' that covers the task of a demon "spawning" for your application.

    You must simply close this VI once it's over. This can be done using VI server on its own front panel functions.

    hope this helps,

    Norbert

  • try to extract the files after downloading a program, the error message

    Cs6 Adobe Creative Suite Design & Web Premium. have downloaded successfully, and when I go to "Run" and extract the files and save it in a folder it tells me to

    "check the rights in writing on the destination folder or the space on my computer. I just wiped my computer and there defiantly of the space. I don't know what the 'writing' is. I'm on the administrator account for the computer, I had this specific programs on this computer before I wiped it and last time I have had no problem download of this. Also this message comes after the first message,

    error.png

    Any ideas?

    Run all programs as Administrator http://forums.adobe.com/thread/969395 to assign FULL... Permissions said yet, but it is sometimes necessary for Adobe

  • Delete the main record without deleting the corresponding details

    Hi all

    If we have a relationship of the master / detail and we delete the main recording, the indicator "delete cascade to implement" can be selected to remove the detail also records.

    Now, what happens if I don't want to remove the detail records, but rather to set the corresponding attribute (that points to the master) in this record to null.

    Ex when you delete a record Department, I need to define the scope of "dpartmentId" of all employee records corresponding to null instead of delete these records.

    Is there a configuration that can be made to say ADF automatically do that?


    Thank you.

    No, adf is not such a mechanism. You can program yourself by disabling the delete cascade indicator and before removing Captain iterate over the child records and set the fk on null value.

    Our make the db using a trigger.  In this case you need to refresh the child vo too.

    Timo

  • data displayed only in the main table not shown in the child table

    I have two tables: master and child. In the main table, I want the first line of the main table must be selected and child records to be displayed when the page is displayed. But the page shows only the master records.

    The code written in the process in the controller application is:
    TheAM OAApplicationModule = pageContext.getApplicationModule (webBean);

    Table OATableBean = (OATableBean) webBean.findChildRecursive ("region1RN");
    Boolean ExecuteQuery = BooleanUtils.getBoolean (false);
    [Serializable] parameters = {executeQuery};
    Class [] paramTypes = {Boolean.class};

    theAM.invokeMethod ("init", parameters, paramTypes);

    the code written in AM is:
    public void init (Boolean executeQuery)

    {


    TXN OADBTransaction = getOADBTransaction();
    MTHSustainAspectsVOImpl vo = this.getMTHSustainAspectsVO1 ();

    Line masterRow = vo.first ();
    masterRow.setAttribute ("SelectFlag", "Y");
    vo.executeQuery ();


    }

    can someone tell me why the child records don't come

    Change the code as follows and try

    public void init (Boolean executeQuery)

    {

    TXN OADBTransaction = getOADBTransaction();
    MTHSustainAspectsVOImpl vo = this.getMTHSustainAspectsVO1 ();

    Line masterRow = vo.first ();
    masterRow.setAttribute ("SelectFlag", "Y");
    vo.executeQuery (); Not necessary
    vo.setCurrentRow (masterRow);

    }

    Prasanna-

  • Insert the parent/Child records in an xml file...

    XML file pasted below:

    I loaded the xml file in a table called xml_demo that has a column of type xmltype donnees_xml.

    The Select to parent record is thus, and it works:

    INSERT INTO balit_submissions (balitdoc, documentversion, datetime_from, job_id, status, creation_datetime)
    (SELECT 'MOL'
    ((, to_number(extract(x.xml_data,'/MolDocument/DocumentVersion/@v'))
    (, to_date(substr(extract(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),
    "yyyy-mm-dd HH24" T"")
    123456
    "CREATED",
    NULL VALUE
    OF xml_DEMO x WHERE
    (([existsnode(x.xml_DATA,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1).
    /

    Having problem creating records child. From this file, I expect to create 3 folders.

    insert into balit_energy_blocks
    (
    SO_ID,
    DATETIME_FROM,
    DIRECTION,
    BLOCK_NUMBER,
    ENERGY,
    LAST_SUBMIT_DATETIME,
    PRICE_POUNDS,
    PRICE_EUROS,
    BALIT_REF,
    STATUS,
    LAST_EDIT_DATETIME,
    MOL_REASON,
    ACQUIRING_SO_AREA)
    (SELECT 'TEN'
    (, to_date(substr(extract(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),
    "yyyy-mm-dd HH24" T"")
    (, DECODE(extract(x.xml_data,'/MolDocument/MolTimeSeries/Direction/@v'),'AO1','Up','Down')
    (, to_number(substr(extract(x.xml_data,'/MolDocument/MolTimeSeries/ContractIdentification/@v'),19))
    ((, to_number(extract(x.xml_data,'/MolDocument/MolTimeSeries/Period/Interval/EnergyPrice/@v'))
    sysdate
    , null - price books
    , null - price euro
    (, extract(x.xml_data,'/MolDocument/MolTimeSeries/ContractIdentification/@v')
    "PRESENTED".
    , "A96.
    NULL - acquisition of area
    sysdate
    OF xml_DEMO x WHERE
    (([existsnode(x.xml_DATA,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1).
    /

    For example, there are 3 ContractIdentification tags. Example 1:

    < ContractIdentification v = "RTE_20100331_1500_16" / >

    I expect this selection to snatch the last issue of this string. In this case, 16.
    The selection was:
    TO_NUMBER(substr(extract(x.xml_DATA,'/MolDocument/MolTimeSeries/ContractIdentification/@v'),19))

    The result I got was:

    16RTE_20100331_1500_20NG_20100331_1500_6

    All values of contractident are concatnated and returns posted 19 go.

    Can someone help me to extract the last number of each tag value of ContractIdentification and create the 3 files

    Thank you

    James Sathiaraj

    <? XML version = "1.0" encoding = "UTF-8"? >
    < MolDocument DtdVersion = "3" DtdRelease = "0" >
    < DocumentIdentification v = "MOL_20100331_1500_1600" / >
    < DocumentVersion v = "1" / >
    < V DocumentType = "A43" / >
    < CodingScheme = v "A01" SenderIdentification = "17X100Z100Z0001H" / >
    < SenderRole v = "35" / >
    < ReceiverIdentification codingScheme = v "A01" = "10XFR-TEN - Q" / >
    < ReceiverRole v = "A04" / >
    < CreationDateTime v = "2010-03 - 31 T 14: 10:00Z" / >
    < ValidTimeInterval v = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < codingScheme domain = "A01" v = "10YDOM-1001A001A" / >
    < MolTimeSeries >
    < ContractIdentification v = "RTE_20100331_1500_16" / >
    < ResourceProvider codingScheme = v "A01" = "10XFR-TEN - Q" / >
    < CodingScheme = v "A01" AcquiringArea = "17Y100Z100Z00013" / >
    < ConnectingArea codingScheme = v "A01" = "10YFR-TEN - C" / >
    < AuctionIdentification v = "AUCTION_20100331_1500_1600" / >
    < BusinessType v = "10" / >
    < BidTimeInterval v = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < MeasureUnitQuantity v = "MAW" / >
    < v currency = "EUR" / >
    < MeasureUnitPrice v = "MWH" / >
    < v direction = "A02" / >
    < MinimumActivationQuantity v = "50" / >
    < v status = "A06" / >
    < period >
    < v TimeInterval = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < resolution v = "PT60M" / >
    <>interval
    < v pos = "1" / >
    < v Qty = "50" / >
    < character v = "50.45" / >
    < / interval >
    < / period >
    < / MolTimeSeries >
    < MolTimeSeries >
    < ContractIdentification v = "RTE_20100331_1500_20" / >
    < ResourceProvider codingScheme = v "A01" = "10XFR-TEN - Q" / >
    < CodingScheme = v "A01" AcquiringArea = "17Y100Z100Z00013" / >
    < ConnectingArea codingScheme = v "A01" = "10YFR-TEN - C" / >
    < AuctionIdentification v = "AUCTION_20100331_1500_1600" / >
    < BusinessType v = "10" / >
    < BidTimeInterval v = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < MeasureUnitQuantity v = "MAW" / >
    < v currency = "EUR" / >
    < MeasureUnitPrice v = "MWH" / >
    < v direction = "A02" / >
    < MinimumActivationQuantity v = "50" / >
    < v status = "A06" / >
    < period >
    < v TimeInterval = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < resolution v = "PT60M" / >
    <>interval
    < v pos = "1" / >
    < v Qty = "50" / >
    < character v = "50.48" / >
    < / interval >
    < / period >
    < / MolTimeSeries >
    < MolTimeSeries >
    < ContractIdentification v = "NG_20100331_1500_6" / >
    < ResourceProvider codingScheme = v "A01" = "10X1001A1001A515" / >
    < CodingScheme = v "A01" AcquiringArea = "17Y100Z100Z00013" / >
    < CodingScheme = v "A01" ConnectingArea = "10YGB - A" / >
    < AuctionIdentification v = "AUCTION_20100331_1500_1600" / >
    < BusinessType v = "10" / >
    < BidTimeInterval v = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < MeasureUnitQuantity v = "MAW" / >
    < v currency = "EUR" / >
    < MeasureUnitPrice v = "MWH" / >
    < v direction = "A01" / >
    < MinimumActivationQuantity v = "50" / >
    < v status = "A06" / >
    < period >
    < v TimeInterval = "2010-03 - 31 T 15: 00Z / 2010-03 - 31 T 16: 00Z" / >
    < resolution v = "PT60M" / >
    <>interval
    < v pos = "1" / >
    < v Qty = "50" / >
    < character v = "17.0" / >
    < / interval >
    < / period >
    < / MolTimeSeries >
    < / MolDocument >

    Hello

    The result I got was:

    16RTE_20100331_1500_20NG_20100331_1500_6

    In the query have you tried, access you a single record if you can not expect to get three rows of "magic". The EXTRACT function works as planned, it retrieves the nodes required, but the result is always a fragment of XML (a scalar value).
    To achieve your goal, you must divide the sequence MolTimeSeries in relational lines.

    Two similar solutions are possible, XMLTable (10gr 2 and more) or Table/XMLSequence.
    In your other post, you mentioned db version 10.1, so I guess we go with XMLSequence:

    SELECT 'RTE'
           ,to_date(substr(extractvalue(x.xml_data,'/MolDocument/ValidTimeInterval/@v'),1,16),'yyyy-mm-dd"T"hh24:mi')
           ,decode(extractvalue(x2.column_value,'/MolTimeSeries/Direction/@v'),'A01','Up','Down')
           ,to_number(regexp_substr(extractvalue(x2.column_value,'/MolTimeSeries/ContractIdentification/@v'),'\d+$'))
           ,to_number(extractvalue(x2.column_value,'/MolTimeSeries/Period/Interval/EnergyPrice/@v'))
           ,sysdate
           ,null
           ,null
           ,extractvalue(x2.column_value,'/MolTimeSeries/ContractIdentification/@v')
           ,'SUBMITTED'
           ,'A96'
           ,null
           ,sysdate
    FROM xml_demo x,
         table(
           xmlsequence(
             extract(x.xml_data, '/MolDocument/MolTimeSeries')
           )
         ) x2
    WHERE existsnode(x.xml_data,'/MolDocument/DocumentIdentification[@v="MOL_20100331_1500_1600"]') = 1;
    

    Also note the use of instead of the ordinary SUBSTR REGEXP_SUBSTR because he has not worked for "NG_20100331_1500_6".

    Hope that helps.

    Published by: odie_63 on June 24, 2010 21:18 - comment added regexp

  • Can a parent create an child (on the child device) apple ID if they don't have their own IOS device?

    I have a a question:

    My child receives a device ios as a gift, and requires an apple ID to use. However, is it possible to create an id apple of child for the child on his device, because I don't own other IOS devices.  As long as the creation of the ID child apple can be done, even if monitoring features are lost, I would be fine.

    If my child has an id apple child (or as a last resort, using mine) when they reached the age to have their OWN apple ID, all the contents of the previous ID number can then be transferred to a new one? Even if all downloaded content is FREE, all messages/emails will also be lost? It is quite confusing.

    Is anyway to transfer the contents of one ID to another? Because, as always, children are growing up!

    Any help would be appreciated! =)

    Also... it is possible to monitor an id child from a windows pc/phone apple? Just a yes/no question here.

    Thank you! (Btw, I read almost all the family sharing Guides, no outside help would be appreciated)

    An account for child (under 13 years), which can be created only in the context of a family sharing, can be created on an iPod Touch: Apple ID for your child - Apple Support and sharing of the family

    If you are not using a family sharing you must have a method of payment (credit or debit card) on your account (assuming you are the family Organizer) to pay for his purchases (if she has a balance of iTunes gift cards on his account that will be used before your card being charged).

    If my child has an id apple child (or as a last resort, using mine) when they reached the age to have their OWN apple ID, all the contents of the previous ID number can then be transferred to a new one?

    An id of the child will become a normal account when they reach the age - you have to create a new account in the future, but if you do all of its existing purchases/downloads will remain linked to its existing account, they cannot be transferred to another.

    is it possible to monitor an id child from a windows pc/phone apple?

    Depends on what exactly you want to do. You can view the purchase a history via iTunes (PC or Mac) to your computer (see your purchase history in iTunes store on Mac or PC - Apple Support), and you can view past purchases of 90 days (and possibly to contact iTunes support if there is a problem with a purchase, for example if a piece of music does not play etc) on an account via http://reportaproblem.apple.com

  • Can you align child layers to their parents in the timeline using scripts?

    OK, so I'm very new to scripting. Right now I'm looking for a way to align layers in the scenario with the other.

    So, if, for example - if 3 NULL values were related to a model like this:

    CompQ1.PNG

    I want to be able to line the children up to their parent, to look like this:

    CompQ2.PNG

    So far I tried to find the time when the Solid Black comp begins within Comp 1, but I only managed to find the values of the model Solid Black inPoint which are always relative to the model itself, and not when it is actually active in Comp 1. When I look at the script guide, it does not resemble the Ae allows you to access the timeline like this.

    Any ideas?

    Is it still possible?

    Play with this:

    var app.project.activeItem = myComp;

    for (var i = 1; i)<= mycomp.numlayers;="">

    If (myComp.layer (i) .parent! = null) {}

    myComp.layer (i) .startTime += myComp.layer (i).parent.inPoint - myComp.layer (i) .inPoint;

    }

    }

    Dan

  • Get the Parent for each record in the child

    Dear Experts,

    I have a table that contains the parent and child information. I need to make a request to get the parents of each book of the child table. I tried to write the query but does not get the expected results. Please help me.

    Table: relationship

    Parent of the child

    102 101

    103 102

    104 103

    106 105

    107 106

    109 108

    110 109

    Output:

    Expected child

    102 101

    103 102; 101

    104 103, 102, 101

    106 105

    107 106; 105

    109 108

    110 109

    Thank you very much

    Hello

    MU * 443499 * TR wrote:

    Dear Experts,

    I have a table that contains the parent and child information. I need to make a request to get the parents of each book of the child table. I tried to write the query but does not get the expected results. Please help me.

    Table: relationship

    Parent of the child

    102 101

    103 102

    104 103

    106 105

    107 106

    109 108

    110 109

    Output:

    Expected child

    102 101

    103 102; 101

    104 103, 102, 101

    106 105

    107 106; 105

    109 108

    110 109

    Thank you very much

    Why do you want to

    Expected child

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

    110 109

    Instead of

    Expected child

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

    110 109; 108

    ?

    You may want something like this:

    CONNECT_BY_ROOT SELECT AS children

    SYS_CONNECT_BY_PATH (parent, ';')  AS expected_output

    FROM table_x

    WHERE CONNECT_BY_ISLEAF = 1

    CONNECT BY child = parent PRIOR

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

Maybe you are looking for

  • Personal firmware roadmap priorities

    It is good to have the roadmap set out firmware and to hear that Sony is committed to respond to comments, but this roadmap seems to be primarily about the features of eminent brochure not available at launch. I thought that I list the characteristic

  • Satellite A100-253 - question on the display, the sound and LAN drivers

    After getting a fresh installation (windows XP) on my Satellite A100-253, I thought that I needed the latest drivers. Apperently the drivers from the Toshiba site are obsolete or do any work.Here are my problems: -Display drivers is not installed at

  • How can I delete a txt file header

    Hello. I have a file acquisition and this remove_headers.vi does not in my mind. I m attaching the file and the remove_header.vi file after the header removeing. Pls help. Thank you very much...

  • Ripple of re - draw when scrolling

    When our second computer I scroll in a any Office program instead of re - smooth drawing the re - draw kind of ripples to the top of the page (or to the bottom of the page) line - pretty quickly, but still unpleasant and disorienting. How can I get a

  • How to remove files after synchronization with PC

    After syncing, I tried to delete some unnecessary files and bookmarks. I can't delete files even if they are empty. Bookmarks are deleted very well.