Universe Design - Linking two columns in a table to a subordinate table

Post Author: bradwist
CA Forum: Semantic Layer and Data Connectivity
I hope this is the right forum to ask a question about Universe Design.  If not, please redirect me.  Thanks.
I have a question on a universe design that I am trying to implement.  I'll try to simplify to what I really am focusing on here.  I've got a table, PersonRelationship, that defines a relationship between two people (Person1, Person2).  Both Person entities have a set of data that are contained in the PersonTable.  I'm trying to set up a universe design that allows the PersonRelationship table to join to the Person table twice, for Person1 and Person2 (fields are Person1Id and Person2Id respectively).
(below is a poor attempt to draw the table relationships)
Person (table)          PersonRelationship (Table)                  OtherData (table)
PersonId (PK)          RelationshipId (PK)                             OtherDataId (PK)
               ^----
Person1Id (FK)
         ^----
Person2Id (FK)
                               OtherDataId (FK) -
^
I then would like to build a query in Web-I that allows me to query against certain parameters for both Person1 and Person2.  For instance, I may want information that reflects when Person1 is male and Person2 is female.
Is there a way to establish this relationship within the universe without having to create two physical tables?
Thanks.

Post Author: bradwist
CA Forum: Semantic Layer and Data Connectivity
With further information, I believe the answer to this is Aliasing the table.  But when I create and Alias of the person table, it doesn't show up in WebI.  I only see the original.  Not sure what the problem is.

Similar Messages

  • Show name field for two columns Fact Table joing by one Dimension

    Hi all,
    My question is about physical joins in Oracle BI EE.
    Task is:
    In a relational fact table "star" there is two columns Entity 1, Entity 2 and a table dimension Entity witch have two filds: ID and NAME. By loadind data fact table is filled with id for Entity 1 and Entity 2.
    In a report made in Answers i need to show ID_Entity_1 NAME_Entity_1 ID_Entity_2 NAME_Entity_2
    Question is: how to do physical join between two columns fact table and one dimension table entity so, that i can show name field in a report for both columns Entity 1, Entity 2.

    You must Create an alias in the physical layer of your table dimEnsion and use it as a second dimension table.

  • Using IN with two columns

    Hi all,
    I have to perform a query like x,y not in(select x,y from k). How to do this. These two columns are composite primary keys in both tables although no references exists.
    A sample table and expected result.
    create table v(name varchar(10),place varchar2(10));
    create table t(name varchar(10),place varchar2(10));
    insert into t values('Antony','Ollur');
    insert into t values('Paul','Ollur');
    insert into v values('Antony','Ollur');
    I need to select second row from table t which does not exist in v.
    Expected result
    Paul Ollur
    Thanks in advance.
    Antony Paul

    There are a number of ways to do this:
    SELECT * FROM t
    WHERE (name, place) NOT IN
       (SELECT v.name, v.place FROM v)
    SELECT * FROM t
    WHERE  NOT EXISTS
       (SELECT null FROM v
        WHERE  v.name = t.name
        AND    v.place = t.place )
    SELECT t.name, t.place  FROM t, v
    WHERE  v.name(+) = t.name
    AND    v.place(+) = t.place
    AND    v.name IS NULL
    SELECT t.name, t.place  FROM t, v
    WHERE  v.name != t.name
    OR     v.place != t.place
    /The AND version of this last query doesn't work because both rows in T match a row in V on the basis of PLACE.
    Cheers, APC

  • Data merge from two columns

    Hello all,
    We have a requirement that we need to combine data from two columns. We have comments1 field in TABLE A and comments2 and comments3 fields in a TABLE B. The the report has a condition:
    Begin
    If status = 'Pre-Award' then
    Print comments1 from TABLE A;
    ELSIF
    status = 'Post-Award' then
    Print comments2 and comments3 from TABLE B;
    END IF
    END
    Tools version: Oracle reports version 6i.
    Thanks in advance.
    Arun.

    There's a couple of ways to do this.
    One way would be to create a placeholder column for your comments.
    The create a function (much like what you have already listed) to determine which comments to use and place the value of that comment into your placeholder column. You can then use it in that group just as you would any other field.
    Chad

  • Dynamic Table with two columns

    Hi!
    i have to create a Dynamic Table with two columns having 5-5 links each with some text...... three links r based on certain conditions....they r visible only if condition is true...
    if the links r not visible in this case another links take it's place & fill the cell.
    links/text is coming from database.
    i am using Struts with JSP IDE netbeans
    Please help me
    BuntyIndia

    i wanna do something like this
    <div class="box_d box_margin_right">
              <ul class="anchor-bullet">
              <c:forEach items="${data.faqList}" var="item" varStatus="status"
                        begin="0" end="${data.faqListSize/2-1}">
                        <li>${item}</li>
                   </c:forEach>
              </ul>
              </div>
              <div class="box_d">
              <ul class="anchor-bullet">
              <c:forEach items="${data.faqList}" var="item" varStatus="status"
                        begin="${data.faqListSize/2}" end="${data.faqListSize}">
                        <li>${item}</li>
                   </c:forEach>
              </ul>
              </div>
    wanna divide table in two columns....if one link got off due to condition other one take it's position...
    I have created a textorderedlist
    Bunty

  • Two columns in the same table that are foreign keys to the same master key

    i want to create a table let say X, which have two columns that are foreign key that reference the same column in the master table, so does this count as bad database design.

    here is the full ddl for the two table, where in the second table there are two columns that represent the primary key and they are also two foreign keys to the same columns in the master table (items)
    Desc item table;
    Item_id
    Item_name
    Item_price
    Item_quantitiy
    Create table item_recommendation ( item_id varchar(20), recommended_item varchar(20),
    CONSTRAINT recom_primary PRIMARY KEY (item_id, recommended_item),
    CONSTRAINT F1 FOREIGN KEY (item_id) REFERENCES items(item_id), ),
    CONSTRAINT F2 FOREIGN KEY (recommended_item) REFERENCES items(item_id));

  • How to provide Link to Column in  the Table

    Hi
    please let me know how to provide link to one column in the table.
    i have two views
    in one view i will dispaly emp id and emp dept in a table
    i have to provide link to the emp id column table
    when i click emp id column then it will fire other view and display remaining details of emp.
    so please let me know how to provide link to column in the table.
    Solution is urgent
    regards
    mmukesh

    Hi Mukesh,
       You can insert LinkToAction column in table.you can have two cattributes in Valuenode one is of type boolean and other is of type string(empno)
    you can create eventhander in that you can fire plug to seconf view where you can displays the emp details
    With Regards
    Naidu

  • How to define form within a table with two columns?

    Hallo,
    i want to design a form with two columns side by side.
    My way is to define a table within the form:
    <af:panelForm>
    <afh:tableLayout width="100%">
    <afh:rowLayout halign="left">
    <af:inputText value="#{bindings.StsNr.inputValue}"
    label="#{bindings.StsNr.label}"
    required="#{bindings.StsNr.mandatory}"
    columns="#{bindings.StsNr.displayWidth}"
    readOnly="true">
    <af:validator binding="#{bindings.StsNr.validator}"/>
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.StsNr.format}"/>
    </af:inputText>
    <af:selectOneChoice value="#{bindings.StammsaetzeStsEmpfangsart.inputValue}"
    label="#{bindings.StammsaetzeStsEmpfangsart.label}"
    tip="Brief, Fax, Mail">
    <f:selectItems value="#{bindings.StammsaetzeStsEmpfangsart.items}"/>
    </af:selectOneChoice>
    </afh:rowLayout>
    </afh:tableLayout>
    </af:panelForm>
    Is there a better way to do it?

    Hi reiasmus ,
    Try <af:panelForm row="X">, that specifies the number of fields by columns. If you have ten fields and you fix row="5", you will obtain two columns with 5 rows on each.
    Regards,
    Tif

  • Populating a table with two columns using a custom bean

    hello,
    Can someone provide me or give me a link to an example of populating a table (with two columns) with a custom bean?
    thank you
    fwu

    1)create a java class
    2)have a list as a class variable
    3) populate the list in the constructor..
    4) map the values in the af:table
    //Employee pojo
    public class Employee {
        public Employee() {
            super();
        private String empName;
        private String empManager;
        private String job;
        public void setEmpName(String empName) {
            this.empName = empName;
        public String getEmpName() {
            return empName;
        public void setEmpManager(String empManager) {
            this.empManager = empManager;
        public String getEmpManager() {
            return empManager;
        public void setJob(String job) {
            this.job = job;
        public String getJob() {
            return job;
    //maanged bean
    public class Bean {
    private List<Employee> employee;
        public Bean() {
            super();
            employee = new ArrayList<Employee>();
          Employee e1 = new Employee();
          e1.setEmpName("xxxxx");
          e1.setEmpManager("xxxxxxxx");
          e1.setJob("xxxxxxx");
          Employee e2 = new Employee();
          e2.setEmpName("yyyyyyy");
          e2.setEmpManager("yyyyyyy");
          e2.setJob("yyyyyyt");
          Employee e3 = new Employee();
          e3.setEmpName("zzzzzz");
          e3.setEmpManager("zzzzzzz");
          e3.setJob("zzzzzzzz");
          employee.add(e1);
          employee.add(e2);
          employee.add(e3);
          employee.add(e4);
        public void setEmployee(List<Employee> employee) {
            this.employee = employee;
        public List<Employee> getEmployee() {
            return employee;
        }in the table map like
    <af:table value="#{Bean.employee}" var="row" rowBandingInterval="0"
                        id="t1">
    <af:column headerText="Employee Name" id="c1">
                  <af:inputText value="#{row.empName}" id="it5"/>
                </af:column>
                <af:column headerText="Employee Manager" id="c2">
                  <af:inputText value="#{row.empManager}" id="it2"/>
                </af:column>
    </af:table>

  • DreamweaverCS3 template(two column liquid) views fine in firefox but in IExplorer I don't get the design only code?  How do I fix this?

    Dreamweaver CS3 template two column liquid views fine in firefox but in Iexplorer I don't get the design only code? How do I fix this?

    random guess- what file extension have you saved the file with.
    second random guess- there may be an unclosed html comment
    third- what do you mean by "I don't get the design only code"
    Do you mean the browser shows the code, or the browser shows nothing, or ???
    for a better reply, please provide a link to the uploaded page please.

  • Linking Olap universe built on two different BEx Queries

    Hi,
    I need help on following:
    I have a universe A build on Bex query 1 and universe B build on Master Data.
    I want to link Universe A to Universe B so that i can filter the values in universe B based on user logged in and use them in Universe A.
    Can any one let me know if this is supported at first place linking two olap universes in BusinessObjects XI R3.1 SP2/SP3?
    If yes how can i acheive this?
    Is ther any document that has details about linking the Olap universe in BOXI R3.1 SP2/SP3
    If anyone knows about this please let me know ASAP.
    Thanks,
    Shashank
    Edited by: smisha23 on Dec 23, 2010 8:43 AM

    Hi Ingo,
    thanks for the help.
    Let me explain my scenarion so as to why i am trying link universe option.
    I have a requirement where in i am suppose to populate the Lov's based on userlogged in BOXIR3.1
    i have a BEx query from which i have build a universe when I develop a report from this universe I get some default prompts coming from the bex query which has all the values from master data table now i want to limit this lovs to pouplate only those values which are specific to that user instead of all the values.
    Please can you sugeest some way around for this?
    Thanks,
    Shashank

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Error when splitting a Table into two columns - Please help!

    Hi!
    I have created a table in which I have created a header which has been split into 3 parts conisting of 2 columns. These all work fine. However, when I try to split the row below the header row into 2 columns, it does so but, in a way, connects the line inbetween the two columns with the line inbetween the two columns above and will not allow me to move it left or right by manually changing specs or dragging the line. Please help! (I'm using CS5 by the way!) Thank you!

    I suggest you begin with a pre-built CSS Layout.  DW has several to help jump start your projects.  Go to File > New Blank Page > HTML.  Select a layout from the 3rd panel and hit CREATE.  See screenshot.
    Save this layout as test.html and begin building your prototype page saving and validating code often during your work sessions.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Good luck with your project!
    Nancy O.

  • How to center title text and table across two columns

    Hello,
    I want to be able to center a table and its title across a two column page. The pages where I want to do this contain text in both columns or text in the left column and graphics in the right. On the same pages as the text and graphics, I'd like to center, across both columns, a table with a title. What is the best way to do this?
    If I insert the table in the left column, I can size it to fit over both columns but I can't type directly into the cells that cover the right column (I can type in the cells covering the right column if I Tab to them but it's tedious and doesn't seem right). With the table's title, I've tried using the Across All Columns paragraph setting, but the text stays in the column the paragraph marker is in.
    We are using Frame 8 on Windows XP Professional. The Master pages are Right and Left pages that are set up with two columns, both tagged as A with the Autoconnect feature on so that the text flows from the bottom of the left column to the top of the right.
    Please let me know what you think.
    Thanks,
    Tim

    Yes, equal-sized columns. No, they're always equal. And that answers
    David's question: you're using two frames because you want unequal columns.
    Frame's paragraph-level column controls only work on columns made by
    dividing a single frame into two or more columns. So you're back to
    square one: you need two frames because your columns are unequal; you
    need one frame so you can span columns.
    Another possibility is that you might set up your document with a
    sidehead column, but I hesitate to recommend this because I still can't
    quite envision what your layout looks like. Any chance you can post a
    PDF somewhere?
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Spry validation text field across two columns in a table?

    I have a table with two columns.  I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
    Is this even possible for me to do or do I have to put the widget in just one column?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

Maybe you are looking for

  • Multiple ASM Instances on single node

    Hi All, After going through some threads it seems to me that multiple ASM instances on a node is not supported and recommended by ORACLE but i coudn't find any ORACLE document or support matrix mentioning this. Can any one give me a pointer to this.

  • My keynote widget in iBooks Author doesn´t work.

    Hi there! I can´t previsualize in my iPad a keynote widget, made for a book in iBooks Author... it simply doesn´t appear... does anybody know if I´m missing a step?? I drag the file in a keynote and also in HTML formats and it just doesn´t work. Than

  • Another system migration problem...

    I had posted this as a reply in a thread about problems with using Migration Assistant with a bootable external FireWire drive, but it wasn't getting any replies, so please forgive the double-post... I need to find an answer to these problems before

  • Camera would like to use your current location

    After 2.0 I am getting the above message every time I use my camera. What does this mean?

  • Displaying podcasts with a better looking player?

    With Podcast Producer 2, the podcasts that are posted to user blogs appear with the same rather plain quicktime player interface that has been around forever. Even videos on Apple's own website are presented in a nicer player. I can't figure out why