Relating two Relational Models using Keys

Is there a possibility to relate two different relational models containing tables in each. for e.g. i have a relational model1 with table 1 and in another relational model2 i have another table 1. The table 1 in RM 1 contains a primary key which is referred to a Foreign key In Table 1 in RM2. I want to relate those tables with this foriegn key Constraint. Is this possible? If not any other idea.

It's not possible, such functionality will be added later.
You can "copy" table1 from RM1 and "paste" it in RM2 - well it's not possible to have two tables with the same name (it'll be possible in next release) so you should change table name to something meaningful for you like table1_RM1. You also should uncheck "Generate in DDL" property in table dialog. Now you can generate foreign key constraint referring copied table. Table name - you can open physical model and can set the name of the table again to table1. You also need to set different users to both tables otherwise you won't get what you expect.
Here is sample DDL when physical model is open - you need again to remove copied table from selection list (this is for selected open physical model - you can save design and selection choice will be persisted):
CREATE TABLE User4.TABLE_1
tbl1rm1_DEPARTMENT_ID NUMBER (4) NOT NULL
) LOGGING
ALTER TABLE User4.TABLE_1
ADD CONSTRAINT tbl1rm1_tbl1rm2_FK FOREIGN KEY
tbl1rm1_DEPARTMENT_ID
REFERENCES User3.Table_1
DEPARTMENT_ID
NOT DEFERRABLE
and here is generated DDL when physical model is closed:
CREATE TABLE TABLE_1
tbl1rm1_DEPARTMENT_ID NUMBER (4) NOT NULL
ALTER TABLE TABLE_1
ADD CONSTRAINT tbl1rm1_tbl1rm2_FK FOREIGN KEY
tbl1rm1_DEPARTMENT_ID
REFERENCES Table1_copy_from_RM1
DEPARTMENT_ID
Philip

Similar Messages

  • How we relate two tables using foreign key(fk)?

    hi to all,
        what are the conditions has to follow to relate two tables.I.e.,
    the two tables have same primary keys(pk). if we relate these two tables in one table the pk and fk will be the same then how that table in active.

    Hi
    To relate two tables..we have foreign key relationship.
    In one table v have primary key and in the second table, the same key is foreign key for that table..
    To relate two tables, we can use JOINS
    If there is already a suitable foreign key between two tables used in the view, these tables can be linked with a join condition from this foreign key.
    Create a view on tables TAB1 and TAB2. TAB1 is the primary table of the view. TAB2 is the secondary table of the view. TAB1 is the check table for TAB2. The foreign key fields are assigned to the check table fields as follows:
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    The join condition of the view generated from the foreign key is then:
    CREATE VIEW ... AS SELECT ... WHERE TAB2-FIELD_1 = TAB1-FIELD_A AND TAB2-FIELD_2 = TAB1-FIELD_B.
    Join conditions can also be copied from generic and constant foreign keys. If a constant is assigned to a field in the foreign key, it is also assigned to the field in the join condition. There is no join condition for a generic relationship in the foreign key.
    The foreign key between tables TAB1 (check table) and TAB2 (foreign key table) is defined as follows:
    TAB1-FIELD_A assigned to TAB2-FIELD_1
    TAB1-FIELD_B generic
    TAB1-FIELD_C assigned to constant ‘C’
    The join condition for the view generated from the foreign key is in this case:
    CREATE VIEW ... AS SELECT ... WHERE TAB2-FIELD_1 = TAB1-FIELD_A AND TAB2-FIELD_2 = ‘C’.
    Hope it helps
    Reward if useful.

  • I have two related keyword problems.  Some keywords get "broadcast" to every photo in an event.  It's almost impossible to delete these keywords from individual photos.  I select the keyword, hit delete and it reappears after a few seconds.

    I have two related problems with keywords in iphoto 11.  Sometimes, keywords get magically "broadcast" to every photo in an event or album.  It's difficult to delete these keywords.  If I select one and try to delete it it vanishes.  About half the time, it reappears again either in a couple of seconds or after I go to another photo and then return to the previous one.  When thios happens, I need to delete the keyword two or more times before it actually vanishes.  With several hundred photos in an event that all have a bad keyword, this is a tedious process.  I've tried rebuilding the library once, but with only the first (I think) option checked on the rebuild.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I have created two related books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • Queries related to Bi Beans using Oracle9i JDeveloper

    Queries related to Bi Beans using Oracle9i JDeveloper [5.0.581]
    1. Is Asymmetric Report feature is available in Oracle
    JDeveloper(BIBEANS)?
    2. Is Write Back feature is available in Oracle9i JDeveloper
    using BiBeans?
    3. Is it possible to use HotSpots feature in Oracle9i JDeveloper
    (BIBEANS) ?
    4. Is it possible to use On the Fly Aggregation feature in
    Oracle9i JDeveloper(BIBEANS) ? or We need to use Meterialized
    Views or Summary Tables for Aggregation ?
    5. Is any documents/steps available for JDeveloper Reports Web
    Publishing and JDeveloper Report Integration with portal ?
    6. Is any document/information available on JAVA OLAP API for
    Report customization.
    7. Is it possible to insert a ROW/Column dynamically in a
    Report ?
    10.Is it possible to generate Arabic Reports(with Numeric Data
    in English and Dimesions(labels) in Arabic).pl provide some
    doccuments on this topic.
    11.In Formating option there are 13 types of currencies
    provided.but there is no 'Rs'(Rupees) and 'Kd'(KuwaitiDinar).is
    it possible to attain?
         If yes,can i get any examples and related documentation
    on the above features ?
    Thanks for time and help
    Regards
    Raja

    The user that owns the cubes and dimensions must have the role OLAP_USER so that the OLAP API can view the required information which is actually stored in a series of tables owned by the user OLAPSYS. This schema is usually referred to as the CWM catalog. I think the OLAP documentation explains the views that are part of this schema.
    At risk of being rude - why are you creating a relational model? It is much easier to store your model within an 10g R2 Analytic Workspace. This is much more performant and provides greater functionality compared to ROLAP solution.
    Watch out for Enterprise Manager (OEM) when deleting cubes and dimensions. I have had some very bad experiences with OEM not removing all the elements of a dimension or cube from the CWM catalog, even though the nodes in the OEM navigator tree do not show any dimensions or cubes.
    Then when you try to connect to an OLAP schema with BI Beans you got some very serious java exception errors relating to corrupt metadata. At this point you have to use the OLAP PL/SQL packages to clean up the CWM catalog to remove all the invalid dimensions and cubes. It is not that difficult to do just takes a bit of time.
    Hope this helps
    Keith

  • Define fields names in relation at logical model

    Hi all,
    Image
    On a Logical Model, I have 2 entitys, Events and Menu, and has 2 relations.
    When Engineer to Relational, creates 2 new fields in my Events Table, Menu_ID, Menu_ID1. There are some way, in the relation at logical model, to specify the names of the final fields, to avoid to change it later at relational model?
    Regards.

    Hi,
    you can look here Role Naming Foreign Key columns
    Philip

  • How to relate two columns in a same row

    I want to relate two columns in a same row, like if A2 is Jack then B2 to be A, if A2 is Anand then B2 to be B, If A2 is Arun then B2 to be C and so on. How to do it?

    Anand,
    Create a table that lists the relationships:
    Name
    Associated Letter
    Jack
    A
    Anand
    B
    Arun
    C
    Then, use a Lookup function to find the name in the lookup table and return the proper letter to your main table.
    Jerry

  • Two related questions:  ColdFusion 10/Java applications and J2EE supported servers

    I have two related questions:
    1.  CF10 and integration with Java Web applications
    We have a couple of Java applications running on JRun and interfacing with CF9 applications.  The JRun clusters were created through the JRun Admin and, apart from lack of Axis 2.0 support, have served us well for years now.  And, as would be the case, the ColdFusion9/Java/Flash application is a critical public-facing application that the business uses for bidding on projects.
    It appears that with ColdFusion 10 on Tomcat, we will not be able to run those Java applications on a Tomcat-CF10 JVM cluster.  Is this correct?  IF so, what are our options? 
    2.  J2EE Application Servers supported by Adobe for CF10
    Which of these is correct?
    A.  This URL (http://www.adobe.com/products/coldfusion-enterprise/faq.html) states "ColdFusion 10 supports IBM® WebSphere, Oracle® WebLogic, Adobe JRun, Apache Tomcat, and JBoss."
    B.  This URL (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1 0/coldfusion10-support-matrix.pdf) states:
    "J2EE application servers: WebLogic Server 10.3, 11.1, WebSphere Application Server 7, ND 7 JBoss 5.1, 6.0, 7.1.0"
    I *think* "A" above is wrong re. support for Adobe JRun.  It does not specify a version of Apache Tomcat unless it is simply referring to the custom version the comes with CF10.
    Option "B" above shows no support of Adobe JRun or 'standard' Apache Tomcat.
    Thanks,
    Scott

    Question 1 above was answered:  "No support for Java web applications under CF10's custom version of Tomcat"
    Question 2:  No answer yet:  Is Apache Tomcat (NOT Adobe's customized version) supported for CF10 J2EE deployment?  I do not see any installation instructions on how to install CF10 on Apache Tomcat 6 or 7.
    Is anybody using Apache Tomcat as their J2EE app servers and, again, NOT Adobe's customized/limited version? 
    Thanks,
    Scott

  • Two related selectOneChoice components for search criteria

    Hi All,
    ADF/BC4J
    I have two related selectOneChoice components (master/detail) and I want to use them as search criteria. At startup both selectOneChoice should have <Not selected> option selected AND second (detail) selectOneChoice should contain ALL available options (for all parents). As someone selects any value in master selectOneChoice, detail selectOneChoice should filter detail values.
    Under Both selectoneChoice I have View Objects (not entities), so the example from Steve's Muench page isn't applicable.
    Can anyone tell me how to make such a page?
    kind regards,
    krzysiek

    Hi,
    you don't need entity objects to implement dependent list boxes. All you need is to create a dependency between the two VO. So either you create a VL between them or you use a bind variable that you populate in a ExecuteWithParams binding (method call in a managed bean upon list value change of the master list).
    Frank

  • Error 1430 occurred at Open/Create/Replace File in NI_Fuzzy_Logic_API.lvlib:FL Load Fuzzy System.vi- Untitled 3 Possible reason(s): LabVIEW: The path is empty or relative. You must use an absolute path. Not A Path how can i copy it in new vi plz help

    when i am copy the vi that is in find example>fuzzy>fuzzyEx with pi control the follwing error occuring 
    'error 1430 occured at open/create/replacefile in NI Fuzzy logic API.LVLIB FL LOAD FUZZY SYTEM.vi
    untitel 3 possible reason the pat is empty or relative you must se use an absolute patth <not apath>
    plz help me i only want that i can copy this vi in new vi but when i do so the above error occur and fuzzy logic cotroller is highlited 

    Hello Nofil,
    This is probably happening because you have made a copy of the VI without changing the name/ location on the disc. I have saved a copy of the VI for you, it is in LabVIEW 2010 SP1, please ask if you want this in a previous version.
    Regards
    Andrew George @ NI UK
    Attachments:
    Fuzzy Tanks with PI.vi ‏31 KB

  • How to use two RFC models in one Data Source for a Interactive Form UI Elem

    Hi
    I want to use two RFC models (two Function Modules from a SAP Backend system) in one context node of a View Controller in order to pass it as the data source to a Interactive Form UI element. Can I use the data binding mechanism directly or have I to copy the data into a Value Node within the view controller.
    Thanks for helping
    René Morel
    SAP (Schweiz) AG

    Rene,
    You can create a local context node in component controller and copy the data from both the RFC's to this node, then bind it to the view controller. Then you can make this view context node as the datasource of the interactive form.
    Regards,
    Anand

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • Export logical model open all relational and physical model? -- Problem

    Hello,
    If I export only logical model ( file --> export --> To design Data Modeler) . Oracle Data Modeler open all relational and physical model, if I have 100 relational model open all, and this is very resource.
    Can it be avoided?
    Thanks.

    Ok, thanks
    This bug Will solved for version final Data Modeler 4.1 ?

  • Firefox and Thunderbird creates CGLog files in /tmp on my Mac. It contains a lot of info related to keyboard and mouse (keys, scrolls, clicks!) I am concerned!

    These files mostly contains following lines:
    Firefox and Thunderbird creates CGLog files in /tmp on my Mac. It contains a lot of info related to keyboard and mouse (keys, scrolls, clicks!) I am concerned!
    --- flushing event log at XXXX.XXXXXXXX ---
    432138.5090574 (Firefox): CGSGetNextEventRecordInternal: XXXX.XXXXXX loc (-XXXX, XXXX) conn 0xXXXXX MouseMoved win 0xXXXX (click 1)
    and the most scaring:
    XXXX.XXXXX (Firefox): CGSGetNextEventRecordInternal: XXXX.XXXXX loc (xxx.xx, xxx.xx) conn 0xXXX KeyDown win 0x0 flags 0xa00100 set 252 char 63233; key 125 data -2303 special 0 repeat 0 keybd 44
    Why it happens? Is it dangerous? How can I turn it off?
    I saw that on the latest Firefox release for Mac and on Firefox ESR 31.2.0 for Mac
    I saw that on Thunderbird release for Mac 31.2.0

    You can start with this;
    '''[https://support.mozilla.org/en-US/forums/support-forum-contributors/710576 Possible Mal-Ware Scan For Macs]''' {web link}

  • I have a question related to patch download using ftp which was working in

    Hi,
    I have a question related to patch download using ftp which was working in Classic Metalink.
    ftp updates.oracle.com allowed to download patches before but now it says the following.
    $ ftp updates.oracle.com
    Connected to updates.oraclegha.com.
    421-*********************** Downtime Notice ************************
    421-
    421-This service was retired as of November 06, 2009.
    421-
    421-****************************************************************
    421
    Is there a way to download patches now using command prompt. I couldn't see category for metalink in forums hence posted here.
    Regards,
    Nagendra Chillale

    Enter the following command where username and password are your My Oracle Support login and password and filename is the patch file name that you copied from the Properties window::
    wget http-user=username http-password=password no-check-certificate output-document=filename "http://updates.oracle.com/Orion/Download/download_patch/<filename>"
    For example, to download patch 7154429 for Linux where the patch file name is p7154429_10204_Linux-x86.zip, enter:
    wget http-user=[email protected] http-password=password no-check-certificate  output-document=p7154429_10204_Linux-x86.zip "http://updates.oracle.com/Orion/Download/download_patch/p7154429_10204_Linux-x86.zip"
    My Oracle Support FAQ ID 747242.5
    Regards,
    Nagendra Chillale
    Edited by: user12023326 on Dec 16, 2009 11:43 AM

Maybe you are looking for

  • Event Bubbling from inside a MediaElement

    Hi, Does anyone know how to bubble a custom event from inside a ProxyElement? My ProxyElement wraps the target media inside a SerialElement and prepends a clip. I'm wondering how to dispatch an event which I could capture outside of OSMF (bubbles all

  • OBIEE 11g - Line-Bar Graph problem

    Hi, I am trying to build a Line-Bar graph where the line represents target. My data is as follows: Dim1 Dim2 Fact Target A Z 10 2 A Y 5 2 B X 6 3 B W 7 3 Please note that, the target is same across same Dim1. Like A has same target, B has same target

  • Trying to Print 2 books at once

    Hello, I am trying to print some 8 1/2 X 5 1/2 booklets on 8 1/2 X 11 Paper, but I am trying to print them so that when you cut the paper, you get two complete booklets, so one on the left and one on the right. any help would be appreciated. thanks

  • HT201541 my mac mini is quite irritate in operation since I updated to yosemite.  All other updated are also installed.

    Since I installed Yosimite into my mac mini the overall operation is somewhat slow and my safari becomes totally non functional and requires me to restart the computer.

  • Corrupt Display in PP CS6 During Hover Scrub

    I'm running Premiere Pro CS6 on a Win 7 x64 machine with 12GB RAM with an ATI HD 4800 graphics card.  When I use hover scrub in the project window the video image goes inverted black and white and upside down!  This often leads to the same problem wi