Master table with two child tables in ADF Framework

Hi,
I'm trying to implement single master with two detail tables using oracle adf framework of Jdev 11.1.1.4.0. I'm able to do single master-detail by using view link but unable to achieve nested details block i.e., master with nested child blocks.
I created Query based view object of Master and two query based view objects as details. Then I created two view link for master with first child and another view link for master with second child. Even then in my data controls I see as two different components which is incorrect.
Please let me know how to create a data control for an example shown below:
Fruits [MASTER]
--- Details of Fruits as adf table
-- Apples [FIRST CHILD]
---- Details of Apples as adf table
-- Oranges [SECOND CHILD]
---- Details of Oranges as adf table
Regards,
Amar.

You need two viewLinks
Fruits->Apples
Fruits->Oranges
Then in the data model you pick the Fruits entry that has:
Fruits
|--->Apples
You stand on Fruits and you shuttle the Oranges to be under it from the left.
If you'll use the default HR schema you'll see this type of relation for Employees:
https://blogs.oracle.com/shay/entry/master_with_two_details_on_the

Similar Messages

  • Filling temporary table with two other tables.

    Hi everyone,
    In an start routine, I would like to do the following :
    read values in an internal table, save it in temporary table tab1.
    read values in an internal table (the same with a different request) and save it in temporary table tab2.
    save with no duplicate keys and in a sorted table tab3 the result of the two tables.
    I have coded like this, but it doesn't work, since the final table is empty.
    Indeed, the system says it is tried to insert a duplicate key. How is it possible using instruction INSERT ?
        DATA : t_agence_1 TYPE SORTED TABLE OF ty_agence
                       WITH UNIQUE KEY /BIC/C_AGENCE2
                       WITH HEADER LINE.
        DATA : t_agence_2 TYPE SORTED TABLE OF ty_agence
                       WITH UNIQUE KEY /BIC/C_AGENCE2
                       WITH HEADER LINE.
        DATA : t_agence TYPE SORTED TABLE OF ty_agence
                       WITH UNIQUE KEY /BIC/C_AGENCE2
                       WITH HEADER LINE.
    SELECT * FROM /BIC/PC_AGENCE2
          INTO CORRESPONDING FIELDS OF TABLE t_agence_1
          FOR ALL ENTRIES IN DATA_PACKAGE
               WHERE CALMONTH = DATA_PACKAGE-CALMONTH
               AND /BIC/C_AGENCE2 = DATA_PACKAGE-/BIC/C_AG1
               AND objvers = 'A'.
         IF sy-subrc = 0.
           INSERT LINES OF t_agence_1 INTO TABLE t_agence.
         endif.
       SELECT * FROM /BIC/PC_AGENCE2
          INTO CORRESPONDING FIELDS OF TABLE t_agence_2
          FOR ALL ENTRIES IN DATA_PACKAGE
               WHERE CALMONTH = DATA_PACKAGE-CALMONTH
               AND /BIC/C_AGENCE2 = DATA_PACKAGE-/BIC/C_AG2
               AND objvers = 'A'.
       IF sy-subrc = 0.
              INSERT LINES OF t_agence_2 INTO TABLE t_agence.
       endif.
    Thanks if you can help !
    regards
    fred
    Edited by: Christophe BELIN on Dec 5, 2008 3:43 PM

    Shanon,
    You would handle the parent with two child tables exactly the same way you would a parent with one child.
    1) Bring in all 3 tables through the Database Expert.
    2) On the Links Tab, place the parent table on the left of the window and the two child tables to the right (yes there is a reason for doing this).
    3) Delete any CR generated links between the tables.
    4) "Draw" a link that starts from the parent table to the 1st child table and then again, from the parent to the 2nd child.
    a. I'm assuming that you know which fields to link on.
    b. No links between children.
    5) Once you have both links in place right click them and change the "Link Type" to "Left Outer Join"
    a. The reason for doing this: It allows ALL of the parent records to come through, even if they do not have any matching records in
    one or both of the child tables.
    Hope this helps,
    Jason

  • Join  a Parent Table with 2 Child table based on a value

    Dear Guru's
    We have a Parent Table and 2 Child table . The Parent Table has a column like seqtype with only 2 possible values C and S . If the Value is C , then the details are available in Child 1 table and if the Value is S then the Details are in Child 2 table
    How can we query the Data from this type of arrangement ? I am little bit confused and hit a road block
    Will the following query will work ?
    Select
    from Parent P , Child C1, Child C2
    where P.seqtype = C1.Seqtype
    and P.seqtype = C2.Seqtype
    With Warm Regards
    ssr

    You didn't mention the column names in two child tables. Whether the columns are same in 2 tables of these are different.
    If the columns are same better to go and change your design to have only one child table. However if stiil business stops you having one table you can use UNION ALL (Assuming you want to fetch same column information from two child tables) like below:
    SELECT p.col1
          ,c1.col2
          ,c1.col3
          ,c1.col4
      FROM parent     p
          ,child      c1
    WHERE p.seqtype = c1.seqtype
    UNION ALL
    SELECT p.col1
          ,c2.col2
          ,c2.col3
          ,c2.col4
      FROM parent     p
          ,child      c2
    WHERE p.seqtype = c2.seqtype Regards
    Arun

  • Master advance table with two detail advanced tables

    Hi All,
    I have this in mind..please let me know if that is possible.
    I want to have two detail advanced tables within a master advance table.
    The two detail advance tables will be wrapped in a subtab layout.
    My questions are:
    Can a master table have two details tables?
    Can a advance table have two inner advance tables?
    Your help or ideas would be valuable to me.
    Thank you,
    Arun

    Hi OAF Gurus
    I just want to know whether this is possible or not.
    I have created two view links and three view objects
    Table in Table in Table
    Table1--> Table2 --> Table3
    One problem i am facing when i click on Show link of Table1,it displays details of Table2 and when i click Show link of Table2,it displays details of Table3.
    but when i click on Hide of Table1, it says
    oracle.jbo.NoDefException: JBO-25002: Definition <Table3 View Object> of type Attribute not found
    Could you please anybody throw some pointers on this?
    Thanks
    Hitesh

  • How to find out master tables and concern child tables

    Hi,
    my schema contains 219 tables. I got this result by using query "selct count(*) from user_tables".
    Now i need to know about master tables and concern child tables from these 219 tables.
    please guide me.
    Thanks and Regards,
    Venkat

    What about this one!!!
    select a.owner,a.table_name,a.column_name,
         '------------------>' as POINTS_TO,b.owner,b.table_name,b.column_name
    from dba_constraints c
         join dba_cons_columns a on ( c.constraint_name = a.constraint_name and c.owner = a.owner)
         join dba_cons_columns b on ( c.r_constraint_name = b.constraint_name and c.r_owner = b.owner)
    where  (a.table_name = '&table' and (a.owner='&owner'))  -- foreign key
    --     and (b.table_name = '&table' and (b.owner='&owner') )  -- source key
         and ( c.constraint_type='R' )
    order by a.table_namecomment and uncomment one between theese two lines to choose the direction.
         (a.table_name = '&table' and (a.owner='&owner'))  -- foreign key
    --     and (b.table_name = '&table' and (b.owner='&owner') )  -- source keyBye Alessandro
    Edited by: Alessandro Rossi on 22-ott-2008 10.40

  • 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

  • Table with two header rows

    Hello, i have a table in that table i have a header row which has another table with two header rows
    When form spans more then one page on page2 the color and border are showing up outside of table see example below.
    Anyone have any ideas how I can fix this?
    I am using Livecycle designer ES2 9.***
    THanks

    Hi,
    If the table spans to Next page then if you want to move whole table to other page then uncheck the allow page breaks with content option which is under Object Tab.
    Thanks
    Vjay.

  • 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>

  • Designing a cube with two Fact tables

    Hi,
    I am new to multi-dimensional modeling. I am trying to define a cube with two fact tables which have many to many relationship. so I came up with following schema:-
    I want to design a cube so that I can get the count of "FactOne" items which are related to "FactTwo" items having particular status. So, I want to get the count of "FactOne" where they are related to items in "FactTwo"
    which have "Status1". Could anyone please guide me how would I do it?
    Thanks

    Hi Ahsan,
    In your scenario, there are tow fact tables on your Data Source View, and now what you want is that "count of FactOne" which are related to "FactTwo" in a particular status, right?
    It seem that you have find a blog that describes how to select facts with reference dimension on you another thread. As per my understanding, you can follow that blog to achieve your requirement.
    http://bifuture.blogspot.com/2011/11/ssas-selecting-facts-with-reference.html
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • On insert into parent table insert into child tables

    hi all,
    please suggest me an idea for below scenario in plsql
    i have a main table where every day 10k records are inserted,
    now when ever the main table gets inserted the same records should inserted into two other child tables.
    main table will have 20 columns and two child tables will have 10 each columns with one common column in all three tables.
    suggest me if a trigger is best or a procedure is best for this if possible with a solution.
    thanks in advance

    look at INSERT ALL
    sample from http://psoug.org/reference/insert.html
    INSERT ALL
      INTO ap_cust VALUES (customer_id, program_id, delivered_date)
      INTO ap_orders VALUES (order_date, program_id)
      SELECT program_id, delivered_date, customer_id, order_date
        FROM airplanes;

  • Table with in a table Popin

    Hi,
    I need to put a table with in a Table pop in. I am able to achieve the table but the I am unable to display different data for each pop in. action.
    Example.
    Table has 3 records
    Row 1
    Row 2
    Row 3
    On expanding Row1 using pop in I am able to display the table.
    On expanding Row 2, leaving Row 1 expanded, changes the data in both the Areas, showing data  of Row 2.
    Could you please help in resolving the issue.

    Hi Prasanth,
    To display different data inside the table popin, create child node inside the parent node.
    Parent_node(0....n)
         Child_node( 0....n )
    Create a supply function for CHILD_NODE and on select of any row in parent table, write the logic to fill data of child node . Bind this child node to TABLE_POPIN's table
    Now, if you select row1, you can fill child node in supply function and it populates the data,
    similarly, it works for other rows as well
    Hope this helps you.
    Regards,
    Rama

  • Bridge Table between two fact tables

    Hello everybody,
    From what I have read on the BI Administration tool help and on this forum, bridge tables are used to define many-to-many relations between dimension sand fact tables. Is it possible to have a bridge table defining a many-to-many relation between two fact tables?
    Here is my senario:
    1. We have a fact table called fact_Orders describing orders for some products.
    2. We have a fact table called fact_Sales describing sales og these products.
    3. We have a table describing the transformation from order lines to sales lines which is a many-to-many relation, because it is possible to transform an order in more than two steps.
    I was thinking of connecting the two fact tables with a bridge table.
    If bridge tables are inappropriate for this case, what could be a better model for my senario?
    Thanks for your time.

    Hi,
    Well a conformed dimension is a bridge table between two facts, so not sure why you need anything else. If there is a one to many from D1 to F1 and a one to many from D1 to F2 then effectively there is a many to many join from F1 to F2 through the D1 dimension.
    Sounds to me like all you need is an order dimension table, rows in the orders fact table will join to this dimension and so will rows in the sales fact table. You can then do calculations like number of sales per order, total sales revenue per order, # of order items per order etc etc.
    Regards,
    Matt

  • Join 2 tables with a reference table

    I have two large tables that I am trying to join together by two columns. Below are the tables with two samples in each table, the reference table and also the final result that i want. Can anyone help me and any pointers. Thank you so much. 
    Join on xAlias = mAlias 
    Join on xValue =mValue
    And if xValue =mValue is null then look at xRefValue = mRefValue
    Result

    Please provide example data in tables. For an example of this, see the top of the code.
    Try this:
    DECLARE @1stTable TABLE (xitem VARCHAR(15), xAlias VARCHAR(30), xvalue VARCHAR(30))
    INSERT INTO @1stTable (xitem, xAlias, xvalue)
    VALUES
    ('HGJ53456FCN','Finish/Coating', 'Black Oxide'),('HGJ53456FCN','Series/List', '8301'),('HGJ53456FCN','Material', 'High Speed Steel-E'),('HGJ53456FCN','Number of Flutes', '3'),('HGJ53456FCN','Overall Length (Inch)', '3-19/32'),
    ('HGJ53456FCN','Threads Per Inch', '12'),('HGJ53456FCN','Thread Limit', 'H3'),('HGJ53456FCN','Shank Diameter (Inch)', '0.429'),('HGJ53456FCN','Thread Size (Inch)', '9/16-12'),('HGJ53456FCN','Chamfer', 'Plug'),
    ('HGJ53456FCN','Thread Direction', 'Right Hand'),('HGJ53456FCN','Thread Length (Inch)', '63/64'),('HGJ53456FCN','Thread Standard', 'UNC'),('LOP65986','Finish/Coating', 'Black Oxide'),('LOP65986','Series/List', '5303S'),
    ('LOP65986','Material', 'High Vanadium High Speed Steel'),('LOP65986','Number of Flutes', '4'),('LOP65986','Overall Length (Inch)', '38078'),('LOP65986','Threads Per Inch', '10'),('LOP65986','Thread Limit', 'H3'),
    ('LOP65986','Shank Diameter (Inch)', '0.59'),('LOP65986','Thread Size (Inch)', '3/4-10'),('LOP65986','Chamfer', 'Bottoming'),('LOP65986','Thread Direction', 'RIGHT Hand'),('LOP65986','Thread Length (Inch)', '2'),
    ('LOP65986','Thread Standard', 'UNC')
    DECLARE @2ndTable TABLE (mItem int, mAlias varchar(30), mValue varchar(50))
    INSERT INTO @2ndTable (mItem, mAlias, mValue)
    VALUES
    (53456, 'Manufacturer''s Part Number', NULL),(53456, 'Chamfer', 'Plug'),(53456, 'Finish/Coating', 'Oxide'),(53456, 'Material', 'Vanadium High Speed Steel'),(53456, 'Material Application', 'Carbon Steel; Hardened Steel; Stainless Steel'),
    (53456, 'Number of Flutes', '3'),(53456, 'Overall Length (Inch)', '3-19/32'),(53456, 'Oversize (Yes/No)', 'No'),(53456, 'Series/List3', '00'),(53456, 'Shank Diameter (Decimal Inch)', '0.4290'),
    (53456, 'Square Size (Decimal Inch)', '0.3220'),(53456, 'Thread Direction', 'RIGHT Hand'),(53456, 'Thread Length (Inch)', '1-21/32'),(53456, 'Thread Limit', 'H3'),(53456, 'Thread Size (Inch)', '9/16-12'),
    (53456, 'Thread Standard', 'UNC'),(53456, 'Through Coolant (Yes/No)', 'No'),(65986, 'Manufacturer''s Part Number', NULL),(65986, 'Chamfer', '2-1/2'),(65986, 'Finish/Coating', 'Oxide'),
    (65986, 'Material', 'High Speed Steel'),(65986, 'Material Application', 'Cast Iron; Ductile Iron; Steel'),(65986, 'Number of Flutes', '4'),(65986, 'Overall Length (Decimal Inch)', '4.2500'),(65986, 'Overall Length (Inch)', '4-1/4'),
    (65986, 'Oversize (Yes/No)', 'No'),(65986, 'Shank Diameter (Decimal Inch)', '0.5900'),(65986, 'Thread Direction', 'RIGHT Hand'),(65986, 'Thread Length (Decimal Inch)', '2.0000'),(65986, 'Thread Length (Inch)', '2'),
    (65986, 'Thread Limit', 'H3'),(65986, 'Thread Size (Inch)', '3/4-10'),(65986, 'Thread Standard', 'UNC'),(65986, 'Through Coolant (Yes/No)', 'No')
    DECLARE @refTable TABLE (aliasName VARCHAR(30), xRefValue VARCHAR(40), mRefValue VARCHAR(50))
    INSERT INTO @refTable (aliasName, xRefValue, mRefValue)
    VALUES
    ('Finish/Coating','Black Oxide','Oxide'),('Finish/Coating','SH47 Oxide Nitride','Oxide'),('Finish/Coating','Steam Oxide','Oxide'),('Material','High Speed Steel-E','Vanadium High Speed Steel'),('Material','High Vanadium High Speed Steel','Vanadium High Speed Steel'),
    ('Material','High Vanadium High Speed Steel-E','Vanadium High Speed Steel'),('Material','High Vanadium High Speed Steel-E-PM','Vanadium High Speed Steel'),('Material','High Speed Steel','Vanadium High Speed Steel'),('Material','Carbide','Solid Carbide'),('Material','Powdered Metal Cobalt','Powdered Metal'),
    ('Material','High Vanadium High Speed Steel','High Speed Steel'),('Material','High Carbon Steel','High Speed Steel'),('Material','High Speed Steel-E','High Speed Steel'),('Material','High Vanadium High Speed Steel-E','High Speed Steel'),('Material','High Speed Steel','High Carbon Steel'),
    ('Material','High Speed Steel-E-PMT15 Cobalt','Cobalt Vanadium High Speed Steel'),('Material','High Speed Steel Cobalt','Cobalt'),('Material','High Speed Steel-E Cobalt','Cobalt'),('Material','High Speed Steel-E-PMT15 Cobalt','Cobalt'),('Material','High Carbon Steel','Carbon Steel'),
    ('Material','Bottoming','2-1/2'),('Material','Taper','2-1/2'),('Material','Bottoming','1 to 3-1/2'),('Material','Taper','1 to 3-1/2')
    SELECT xItem, mItem, xAlias, xValue, mValue
    FROM @1stTable st
    INNER JOIN @2ndTable nd
    ON st.xAlias = mAlias
    AND st.xValue = mValue
    LEFT OUTER JOIN @refTable rt
    ON st.xAlias = rt.aliasName
    AND st.xvalue = rt.mrefValue
    ORDER BY xItem, xAlias

  • Parent table of a child table

    I am using a child table 'CHILD_T' and in this table the column 'CHILD_FK' is the foreign key and it is pointing to some parent table. In my oracle editor I can see only synonyms but not actual tables. Is there any way to find out the parent table for this child table. Why I am asking this is because , I am getting below error while trying to execute the below script.
    Here I think my question is pretty simple but I would like to know how to find a parent table of a child table as I can see only synonyms instead actual tables.
    Script :
    INSERT INTO CHILD_T ( EM_ID, DFLT_COST_CNTR_TXT, ACCT_TYP_ID, DFLT_ORD_TYP_ID ) VALUES ('abcd', 'NA', '1', '1' );
    Error:
    SQL Error: ORA-02291: integrity constraint (AFM.USR_PROF_EM_ID) violated - parent key not found.
    Any one have any idea your help is well appreciated.

    select table_name  from user_constraints where constraint_name  in
        (select r_constraint_name from user_constraints  where constraint_name='YOUR_CONSTARINT_NAME');

Maybe you are looking for

  • Cannot arrange objects in Pages for iPad

    I'm creating a document in the Pages app for iPad. I'm trying to put a box behind some text but when I select the box and choose "arrange" the slider doesn't move for me to send it to the back, it's greyed out. Any ideas please it's really frustratin

  • Send a parameter to DataControl Somehow, Please help

    Hi All, This seems like it would be such a simple thing to do but I canno't get it to work, please someone help Here is my scenario I have 2 pages Default.jspx (has a backing bean called backing_Default) EmployeeSearch.jspx (no backing bean) I have a

  • Calculated field hidden when field is blank

    This is actually similar to a discussion from a few months ago.Our forms are intended to be filled out online, printed and e-mailed, faxed, or snail-mailed. Many times the customer will simply print out the form and fill it out by hand. When I create

  • Connecting mac book to camcorder

    I have tried to connect my sony camcorder DCR-HC-23E to my macbook using a firewire cable and it does not recognize do I need to change a setting on camera or mac ?

  • E65 - Unsupported content type

    On my new E65 I downloaded the correct connection settings and tested WAP access with no problems (and I already have WAP access through my provider). Then I setup WLAN access on my local network and surfed the web with no problems. But now when I tr