Parent relations - 10g

Hi,
I have a time dimension with three levels year, quater, month.
A year has 4 quaters, a quater has 3 months.
Year, Quarter , Month
2008 Q4 Oct
2008 Q4 Nov
2008 Q4 Dec
How do I show the parentrel values(relationships between child and parent) between month, quater and year.
In other words, how do i know the parent of a certain member at certain level using sql.
Thanks.

Hi there,
Which version of Oracle OLAP are you using?
Thanks,
Stuart Bunby
OLAP Blog: http://oracleOLAP.blogspot.com
OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

Similar Messages

  • How to make a child parent relation between 2 frames

    hey ppl i have 2 JFrames n i want to open the 2nd frame on the actionEvent of the first one.. now the problem is if i close the first one that is the Parent frame i want that the 2nd one should also close.... so what can i do to have this parent child relation ship between these 2 frames???

    Sure. You need to call setExtendedState with the proper settings. Check out the API for JWindow, JFrame or JDialog for more info on that. It's not too hard tho
    there's one more issue if i opt for the the JDialog
    and make the frame as its parent can u suggest me how
    to open that dialog in the maximized state... if its
    possible ...

  • Page Items from parent related table (readonly - only display)

    Hi,
    is this possible in APEX 5.0?
    DB Strucktur: Customer (Fields: Name, Address, Postal Code ...) 1:n Contacts (Firstname, Lastname, customer_id, ...)
    I need a Form (Contact):
    Firstname:
    Lastname:
    Address:
    Readonly Items from Customer Table (only display):
    Customer Name:
    Cistomer Address Items:
    Thanks for help!
    Alex

    Here's what you could do:
    - First create a Report with Form on your Contact Table
    - Next create a new region called customer info
    - Drag the different display only items for the columns in the Customer table into the new region
    - Finally create a Process Before header which does
         select cust_name, cust_address
           into :P1_CUST_NAME, :P1_CUST_ADDRESS
          from customer_table
       where id = :P1_CUSTOMER_ID;
    - Put a condition on the process to only fire when you have a :P1_CUSTOMER_ID
    Note: your table, columns might be a bit different than in the above example.
    Hope that helps,
    Dimitri
    -- https://www.apexrnd.be
    -- http://dgielis.blogspot.com

  • JDO Mapping to same object as parent/child 1:n relationship

    Hello,
    i'm trying to do a mapping the following way:
    Node (1:n) Node where the Node should have the following
    accessors:
    getChildNodes()   : Set
    getParentalNode() : Node
    I do have the getChildNodes mapping working, but cannot get the parental relation established due to problems with the Node.map file containing the following:
          <relationship-field name="parentalNode" multiplicity="one">
              <foreign-key name="NODE_TO_PARENTALNODE"
                   foreign-key-table="TPB_NODE"
                   primary-key-table="TPB_NODE">
                <column-pair foreign-key-column="ID"
                             primary-key-column="PARENT_ID"/>
              </foreign-key>
          </relationship-field>
    Using this the checker complains about
    javax.jdo.JDOFatalUserException: Error in mapping model of class Node: Relationship of field parentalNode: Primary key column PARENT_ID of relationship's foreign key and target class's com.vw.tpb.node.model.Node primary key columns do not match.
    Well. When i do a 1:n relation to myself how should i create two primary keys then ?
    Anybody some ideas on this one ?
    regards, Udo

    Hi Udo,
    for the reference from child to parent, the column "ID" should be the primary key colum, whereas the column "PARENT_ID" should be the foreign key column.
    Best regards,
    Adrian

  • Parent Child Hierarchy - Display other dimension fields against parent

    Hi,
    I have a Dimension for Customer with a parent child hierarchy.  The problem I have is with additional fields within the dimension.  See data below:
    Row Labels
    Customer Group   Description
    Value
    500116 - OOO "Starline"
    30
       500116 - OOO "Starline"
    A - Dealer
    5
       818781 - OKNO
    Direct / End User
    10
       400464 - OKNO TV
    Other
    15
    500123 - VIDAU SYSTEMS
    300
      500123 - VIDAU SYSTEMS
    A - Dealer
    100
      400396 - VIDAU SYSTEMS
    Other
    200
    Grand   Total
    330
    I want the Customer Group to show "A - Dealer" for the parent of the first row (against "500116 - OOO "Starline"), but its shown blank.  Also, I would like other fields to do the same.  As the parent relates to a row in
    my dimension table, this should be possible?
    Thanks in advance,
    Dominic

    Hi,
    Sorry it took me a while to come back to this.
    My dimension has the following columns:
    ID
    Customer
    Customer Group
    Parent
    1
    500116
    A - Dealer
    NULL
    2
    818781
    Direct / End User
    1
    2
    400464
    Other
    1
    My measure has 3 rows:
    customerKey
    value
    1
    5
    2
    10
    3
    15
    So when this is presented in the cube, the 3 items with values are correctly presented but my problem is that the "Customer Group" doesnt show against record 1 (the parent).  In usual circumstances my users will not expand the hierarchy, i
    just want the associated row value shown.
    Does this make more sense?  I hope so, and i hope somebody can help me resolve it.
    Thanks,
    Dom

  • How to make MDI child - parent relationship in java using net beans/

    Hello Expers
    i am going to prepare an application in java.
    for that, i have to establish an MDI child - parent relation between various forms.
    I am preparing that application in net beans.
    Just guide me as early as possible for that as i have to submit that within three days.
    thanks.

    smuwanga
    Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I'm locking this two year old thread now.
    db

  • Toplink ORM parent-child relationship (one-to-many assoc)

    Hello,
    I'm having some problems changing the parent object of a child object. Can someone point me in the right direction?
    the parent class:
    public class Parent {
    private List&lt;Child&gt; children;
    the child class:
    public class Child {
    private ValueHolderInterface parent;
    The children collection is privately owned by Parent.
    the code to change the parent:
    Child theChild = getTheChild();
    Parent oldParent = theChild.getParent();
    oldParent.getChildren().remove(theChild);
    theChild.setParent(null);
    Parent newParent = getTheNewParent();
    theChild.setParent(newParent);
    newParent.getChildren.add(theChild);
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    Object workingCopy = uow.readObject(theChild);
    if (workingCopy == null) {
    throw new RuntimeException("Could not find entity to update");
    uow.deepMergeClone(theChild);
    uow.commit();
    The logs show that Toplink updates the parent_id of the child row (which I expect).
    But after that Toplink deletes the child and then deletes the old parent (which I don't expect).
    What is the correct way to update the parent of the child?

    Hello,
    Sounds like you have the bidirectional relationship set as privately owned on the child->parent relationship as well as on the parent->child.
    I noticed in your code you are merging theChild into the uow, but not the oldParent. Depending on how you are getting theChild and oldParent objects (I hope you aren't making changes directly on objects in the cache), the changes to oldParent will not be picked up unless you merge them into the uow as well.
    What looks like is happening is that when you null out the child->oldParent relation and then set a new parent, this forces TopLink to remove the oldParent (since I believe this relationship is privately owned). Since the oldParent still references theChild and the relationship is privately owned, theChild is also marked for deletion.
    You might not want relationships marked as privately owned, since it indicates that the referenced objects cannot exist without the object referencing it. Unsetting the child->parent relation to be private owned should fix the problem, but you will still need to ensure the changes in oldParent are merged. I would suggest that right after you call getTheChild() you acquire a uow, read theChild and then work directly on the working copy instead of theChild object. This will remove the need to merge changes later. If that is not possible, just be sure to merge the oldParent in as well.
    Best Regards,
    Chris

  • Help:Limiting ancestors of a dimension leaf member:10g :OLAPDML

    We have a dimension Operating unit which has a standard parent child hierarchy.
    At run time we want to restrict the list of members visible to each user based on a security table. For leaf members we want to show the leaf member and the immediate parent. For members at any other level we want to show the member only.
    So e.g operating unit 6000 is a leaf member with parent 6100.
    In this case we want user to see 6000 and 6100.
    If operating unit is 6100 (not a leaf member) we want user to see 6100 only.
    Question is how do we 1) detect a leaf member and 2) find its immediate parent using ? via OLAPDML using the relationship CR_OU_PARENTREL or any other alternative method.
    [ We will be invoking this program via ONATTACH].
    Thanks,
    Sudip

    Suppose that your dimension is named op_unit and that the parent relation is op_unit_parentrel.
    I will assume that you have limited the the op_unit dimension to the initial list of members and that you have limited the hierarchy dimension (op_unit_hierlist) to a single member. The following limit statement will add the parents of all leaf members in status.
    limit op_unit add limit(limit(op_unit keep bottomdescendants using op_unit_parentrel) to parents using op_unit_parentrel)
    Here is an example
    rpr op_unit_parentrel
    OP_UNIT      RENTREL
    6000     6100
    6100     6200
    6200     NA
    5900     6100
    First show that parent members are added for leaves
    limit op_unit to '6000'
    limit op_unit add limit(limit(op_unit keep bottomdescendants using op_unit_parentrel) to parents using op_unit_parentrel)
    rpr op_unit
    OP_UNIT
    6000
    6100
    Now show that parent members are not added for non-leaf members
    limit op_unit to '6100'
    limit op_unit add limit(limit(op_unit keep bottomdescendants using op_unit_parentrel) to parents using op_unit_parentrel)
    rpr op_unit
    OP_UNIT
    6100

  • Getting ora:00904 invalid indentifier error while running i query

    Hi,
    I have a remote database and local database both are oracle 10gR2.Now i have written the below mentioned query in my local database and is working fine,but in case remote database it is throughing error ora:00904 invalid indentifier.
    I had export the dump from remote db and import it on my local db and i tried the same and it is working fine on local after that also.
    As i believe that this error usually come for column name not exist or column name or it's length or for any special character in column name of the table.But as i said it is working fine on local db but not in remote db though i am using the same dump for local and remote.
    Though when i am querying the table i can able to fetch data for the any record but when i am using the below mentioned query for the same i am getting the error.As i am doing this to fecth the data for child parent related relationship.
    Can any one suggest is there anything related to configaration or something else.
    Please do let me know if you do want some more information on the query what i am doing inside of it.
    Rgds,
    Anit
    Edited by: Anit A. on Sep 1, 2008 2:32 AM
    Edited by: Anit A. on Sep 1, 2008 2:33 AM

    WITH t
    AS
    SELECT decode(t.spnlevel
    ,3,t.u_quotesdtlid
    ,2,decode((select count(*)
    from u_quotesdtl t2
    where t2.u_quotesdtlid = t.u_quotesdtlid
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,(select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '3'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),t.u_quotesdtlid
    ,1,decode((select count(*)
    from u_quotesdtl t2
    where t2.QUOTEID = t.QUOTEID
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,t.u_quotesdtlid,decode((select count(*)
    from u_quotesdtl t3
    where t3.QUOTEID = t.QUOTEID
    and t3.parentspn = (t3.jobgroupid||':'||t3.jobtype)
    and t3.u_quotesdtlid in (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),0,(select t4.u_quotesdtlid
    from u_quotesdtl t4
    ,(select t1.parentspn
    ,t1.jobtype
    ,t1.jobgroupid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ) t5
    where t4.spnitemcode = t5.parentspn
    and t4.spnlevel = '3'
    and t4.jobtype = t5.jobtype
    and t4.jobgroupid = t5.jobgroupid
    and t4.QUOTEID = t.QUOTEID
    (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ,null,t.u_quotesdtlid) as parentquoteid
    ,t.u_quotesdtlid as quotesdtlid
    ,t.spnlevel as spnlevel
    FROM u_quotesdtl t
    WHERE t.QUOTEID ='som key id'
    ORDER BY parentquoteid,t.spnlevel desc
    select * from t;

  • Flex 3/4 Initialization Timing Changes?

    Hi there.  This isn't end-of-the-world critical, but I'm trying to better understand what's going on here.
    We have a relatively large and complex business app (several hundred classes split into a core application framework plus multiple dynamically-loaded product modules), originally written in Flex 3.2.  As part of our new release, we are taking the chance to port it over to Flex 4.5; I've spent the past week doing so.  We're continuing to use the Halo theme for the time being, to minimize the initial disruption.
    I've pretty much gotten it working, but I'm still trying to understand the key behaviour change that I've observed.  A lot of our code is failing at initialization time.  I'm still nailing down exactly what's different, but the most obvious bit is that it seems like, in commitProperties(), properties that refer to other objects in the same parent don't exist yet, where they previously did.  So I'm getting null pointer exceptions where I wasn't previously.
    Similarly, I have a few objects where the property refers to the object itself.  They're graphing objects, which have a property that describes how to set up the dataFunction.  This property is typically set to one of several functions available on the object.  So graph "foo" would set this function to "foo.useDateForY" or some such, using one of these utility functions on the class that says how to set up the graph.  This previously worked, but now the property is failing because "foo" is null when it is trying to resolve the property value.  This seems likely to be related to the above.
    Finally, I've also observed what appear to be differences in the resolution of the lifecycle for non-visible objects.  Again, I haven't had time to nail this down precisely, but it feels like I used to get CREATION_COMPLETE in a bunch of cases that aren't getting it any more -- specifically, this seems to be happening for objects that I'm building up before adding them to the visible graph.  I build lots of screens upfront when a product is loaded, but don't actually add them into the tab structure until they are invoked.  Similarly, we have popups that we want to be populating as we go, long before they are displayed, but I don't seem to be getting CREATION_COMPLETE for them when I used to.
    So it seems like something has changed subtly in the UIComponent lifecycle, having to do with the timing of resolving IDs, setting properties to them, and calling commitProperties(); maybe also something having to do with how parenting relates to finishing the lifecycle.  Does anybody have a clue what I'm talking about here?  And is there a document somewhere that describes the timing changes more clearly?  I've seen several documents talking about 3 -> 4 changes, but haven't noticed anything on this particular topic...

    Yes, the timing of when child objects are created has changed relative to
    when the constructor runs, but the lifecycle methods and events have not
    changed.  If you rely on commitProperties to resolve things, it should be
    ok.
    The only cases I've seen where creationComplete doesn't fire is if there is
    an invalidation loop going on which is slightly more possible if using
    multiline text controls whose height depends on width or vice-versa.

  • Error while create aggmap for concatenated dimension ???

    How can I create aggmap for concatenated dimension ??
    I created dimensions named awprod_lvl0 ,awprod_lvl1,awprod_lvl2,awprod_lvl3,awprod_lvl4 and concatenated with a dimension awproducts. Then I created a parent relation awproducts.parents and mapped into the relational tables using sql fetch procedure .Iam able to see values in the olap work sheet .When i tried to create aggmap for different aggregation , it is throwing an error??It is telling that awproducts and awpro_lvl4_id cannot appear because they share same base level dimension...
    can anyone help in resolving this problem?????

    Jithesh, could you provide the exact definitions for the aggmaps, dimensions and relations that you're using?

  • Logical to Physical objects Mapping

    Recently installed OLAPTRAIN's SALESTRACK AW, and noticed that there are many __AW_GENERATED.. object names.
    It is very difficult trying to trace back what these objects refer to, and quite challenging if we are using OLAP DML commands to create custom reports.
    This is the result of the 30 character limit AWM has when concatenating cube and measure names and concatenating dimension and attributes names.
    As an example for the Measure "Cross Over Linear Regression" (Logical Name: SALES_CUBE.CROSS_OVER_LINEAR_REGRESSION)
    "CROSS_OVER_LINEAR_REGRES" is COLUMN_NAME value in SALES_CUBE view and in ALL_CUBE_VIEW_COLUMNS data dictionary view
    "SALES_CUBE_CROSS_OVER_LINEAR_R" is the object name found using AWM OLAP Worksheet
    Now try creating Measure "Cross Over Linear Regression 1" (Logical Name: SALES_CUBE.CROSS_OVER_LINEAR_REGRESSION_1)
    "CROSS_OVER_LINEAR_REGR_1" is COLUMN_NAME value in SALES_CUBE view and in ALL_CUBE_VIEW_COLUMNS data dictionary view
    "__AW_GENERATED_164" is the object name found using AWM OLAP Worksheet
    I think AWM needs to be a little smarter in the way Object names are generated for measures/attributes.
    Possible AWM solution for this would be to restrict the Measure Name to 30 characters that includes the Cube Name length. User can then utilize the Short Label, Long Label and Description fields to enter proper descriptions.

    Although the physical AW object names are not shown in the data dictionary views in 11g, they are available through the Java OLAP API as of release 11.1.0.7.
    For example, many of the physical names of the AW object underlying a logical (i.e. AWM or USER_CUBE_DIMENSIONS) dimension can be found from the class
    oracle.olapi.metadata.deployment.AWPrimaryDimensionOrganization
    E.g.
    The name of the main AW dimension can be found using
    public final String getAWDimensionName()
    The name of the parent relation is
    public final String getParentRelationName()
    The name of the hierarchy dimension is
    public final String getHierarchyListName()
    To navigate from a logical dimension to the organization object you can do the following.
    MdmPrimaryDimension myDim = ...;
    AWPrimaryDimensionOrganization org = (AWPrimaryDimensionOrganization) myDim.getOrganization();
    Other physical object names can be located in other classes in the oracle.olapi.metadata.deployment package. This methods are public and supported, but do not appear in the JavaDoc. I don't know if they will be documented at any stage and I know of no immediate plans to make these objects visible through the data dictionary views.

  • Search Help displaying description but returning ID

    Hi All,
    I have a textbox in web dynpro showing description (from table "Description" ) in a textbox after user selected some value from its search help.
    The issue is, instead of description shown (which is correct), I want to process the value selected using its ID (from table "ID").
    Both tables have child-parent relation.
    Unfortunately, both "ID" and "Description" are not key. The keys for both table are GUID (another field).
    Any suggested solution ?
    TIA,
    Tony

    Hi Tony,
        In your search help try using index.
        You can use the index number to select the value.
        I have some sample code, you can use this as per your requirement.
    METHOD add_data .
      DATA : lt_urls TYPE if_main_view=>elements_drp_text.
      DATA : lr_element      TYPE REF TO if_wd_context_node.
      DATA :     url             LIKE LINE OF lt_urls.
    Supply data for the node at runtime
      REFRESH lt_urls[].
      DO 5 TIMES.
        url-key = sy-index + 1 .
        CONDENSE url-key.
        CONCATENATE `www.` url-key `.com` INTO url-url.
        INSERT url INTO TABLE lt_urls.
      ENDDO.
      lr_element = wd_context->get_child_node( 'DRP_TEXT' ).
      lr_element->bind_table( lt_urls ).
    ENDMETHOD.
    Hope this will help you.
    Cheers,
    Darshna.

  • Hierarchical data with SQLAssembler: pointers vs ids

    Hi!
    Ive got parent-children nodes that I need to store and retrieve from an SQL database, using SQLAssembler. The parents and children are a recursive tree, all of the same class.
    The data is displayed in AdvancedDataGrid, which requires the children attribute. In the SQL table, I prefer one parent relation instead. Therefore my model uses both, which increases the complexity.
    My problem, I think, is that the Flex/ActionScript model is using pointers (parent), while the SQL tables uses the parentId (integer).
    How do I deal with the two different ways of referring to the parent/child? Do I need to implement both in my managed objects?
    My current implementation includes both SQL ids and AS pointers. On the result event, I create pointer relationships based on the SQL node ids. I think this may be unnecessary, as LCDS is passing the whole tree as one, to the database after my update.
    I basically unsure how to implement these parent/child relationships in ActionScript and/or SQL tables / statements. Because my current implemnations have been mucking up halfway through.
    Any hints are greatly appreciated.
    Cheers,
    Vegard

    Well, just start by making a Node class. To allow Nodes to have children, make each Node have an array (or arraylist, vector, etc.) of other Nodes.
    for example:
    class Node{
      private ArrayList<Node> children;
    }Put whatever else you need in there.
    You can then traverse these through methods you write, to return child nodes. If you need the Nodes to have knowledge of their parents, add a Node parent; variable in your Node class.
    Essentially, keep things as simple as possible, and this will allow you to write cleaner code and also decide on the depth of the structure at runtime, like you describe.

  • LMS3.1/RME: inventory report

    Hi,
    I would like to get an information about gigaStack port on switch inventory.
    I have generated an Detail device Report but I didn't get this information.
    I can find this information by show interface status | include GigaStack on switch :Gi0/1                        connected    trunk      a-full a-1000 1000BaseCX Gigastack
    Gi0/2                        connected    trunk      a-full a-1000 1000BaseCX Gigastack
    So, I try with RME -> Tools -> Netshow. see file attached.
    I get the information but I prefered to get it in with a report because I need to get thoses informations for 150 devices.
    Is there a way to get it on a report ?
    When I look at RME->Admin-> Inventory-> Change Filter,
    I think that there are more port information compare to report generator.
    Status
    Parent Relative Position
    Port Interface Index
    Operational Status
    Manufacturer Name
    Field Replaceable Unit
    Alias Name
    Slot Configuration
    Port Model Name
    Port Vendor Type
    Power Remaining
    Port Serial Number
    Power Consumption(%)
    Description
    Power Consumption
    Component Type
    Power Available
    Port Index
    Power Allocated
    Maximum Power
    POE Admin Status
    Physical Entity Name
    Custom report, port attribute, I can take only thoses attributes:
    Maximum Power
    Power Allocated
    Power Available
    Power ConsumptionPower Consumption(%)
    Power Remaining
    POE Admin Status
    Why there are more infiormation for change audit than inventory report ?
    Thanks, Elisabeth
    Inventory Change Filter : Port 

    Do you think that there is an attribute or an snmp variable for GigaStack information like I can get with show status ?
    Port      Name               Status       Vlan       Duplex  Speed Type
    Gi0/1                        connected    trunk      a-full a-1000 1000BaseCX Gigastack
    Gi0/2                        connected    trunk      a-full a-1000 1000BaseCX Gigastack

Maybe you are looking for

  • Check number in payment document

    Frnds I have below situation, when we pay vendor or customer by check, it issue check with specific check number, and when open the payment document number, there will be a vendor account and the bank account line item. and when i double click on the

  • ABAP Object Standards

    I have been charged with creating ABAP Object Standards for my company.  I have found naming conventions, but have not found any programming standards anywhere.  Does anyone know of any that I could use? Thanks Craig

  • Workflow tasks are dependent or independent from MANDT ???

    Hi guys, Could someone please tell me if workflow task's are dependent or not from MANDT? Thanks.

  • My iphone is connected to wireless but internet doesn't work

    hi, my iphone 4s is connected to wireless, but the internet won't work. i know the internet is working, because i'm able to access it from my computers. and this problem is happening at every wireless network i've tried in the last 48 hours. it is co

  • Office and 10.8.2

    I upgraded to 10.8.2 and Office 2008 won't run.  Any suggestions?  I have also heard 2011 won't run.  I don't have the Office installer disks anymore so that won't help.