Creating FK's in tables that are all ready created

Good afternoon,
I have 4 tables set up, and need to create foreign keys in three on them relating back to my EMPLOYEE table. The FK will be based on the employee number column in the EMPLOYEE table.
Once these tables are created and populated, how do I link a PK to a FK, and how do I create a FK in a table that is already created.
Many Thanks,
-Robert

Hello Robert,
you can do that with APEX as well:
1. Login to your workspace
2. Go into "SQL Workshop"
3. Start the "Object Browser"
4. Select "Tables" (if not selected already)
5. Pick your desired table (e.g. CONSULTING) from the table list
6. Click on "Contraints" in the detail view
7. Click on "Create"
8. Enter your desired Contraint Name (e.g. CONSULTING_FK)
9. Chose your desired Contraint Type (e.g. Foreign Key)
10. Chose your option for action on delete for that key (see lakes post above)
11. Chose the column that contains the foreign key (e.g. Cnslt_Emp)
12. Chose the table to be referenced (e.g. EMPLOYEE)
13. Chose the column to be reference (e.g. Emp_Num)
14. Continue
15. Check if all settings are correct, see the SQL statement if you want, and click Finish.
To learn more about what you can do with the Object Browser and the other components in the SQL Workshop, you might want to study the [url http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15520/toc.htm]APEX SQL Workshop Guide. It contains step-by-step guides for almost all functionality you'll need in every day life.
-Udo

Similar Messages

  • My TV has only 2 HDMI conections that are all ready in use for Directv and the Blueray. Can I use composed cables to conect Apple TV

    My TV has only 2 HDMI conections that are all ready in use for Directv and the Blueray. Can I use composed cables to conect Apple TV

    I'm going to take a guess and say that if your TV has 2 HDMI ports, it also has a component input (5 wire).   I'm also going to guess that either your DirecTv or your Blueray has a component output option.  If I had this setup, I would put my DTV on the component option and use the open HDMI port for the ATV2.
    I doubt you will be able to tell the difference on your DTV.  Most of the stores that demo HD use component wiring on their store models.  The only downside is that you may be giving up the highest sound (Dobly 5.1 or whatever they call it.) 
    Or you could just go to switching the HDMI cords from your BluRay to the ATV2 depending on which one you are watching.  I think I use my BluRay about 5% or less of my viewing time.  If I "tossed", I wouldn't shed a tear.

  • Is there a way to find the temporary table that are created or read during?

    Hi All,
    I'm working on performance optimization where I have to find the temporary tablespaces that are created or read during runtime? Is there any way to find it?
    Can you please also tell me how the temporary tables are created? And after each run time whether the data is getting deleted or the whole table is getting deleted?
    Whether these tables are created only during runtime? What are the naming conventions for all the temporary tables that are created?
    Is the table creation has anything to do with Delta or Full load?
    Regards,
    Kartik

    Stephen Tyler Bloom wrote:
    When they come out with the next garageband, they should add that feature .
    be sure to let Apple know:
    http://www.bulletsandbones.com/GB/GBFAQ.html#sendfeedback
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Tables that are frequently deleted

    I was wondering if anyone out there had some suggestions on how to deal with this problem.
    We have a participants table that stores all the participants in a program.
    During an enrollment period we may have several thousand new participants that may choose to enroll in a program.
    After enrollment we delete all the participants who haven't enrolled in a program.
    Should I create a separate table called new_participants and just truncate it after each enrollment, or should we leave all records in the same table and delete unused records after enrollment?

    truncate is an option if performance is becoming a problem and there are a large number of full table scans from the application. Otherwise, this is not requried.

  • How to know the List of Tables that are updated through a ABAP Program

    Hi,
    Is there a program or something that will help me to identify the List of Tables that are used in a ABAP program(ABAP Report, Transaction .... program) without debugging it or looking at the dictionary structure.
    I really need this urgently. Try to give me many methods as possible.
    Thkx
    Kishan

    Hi,
    I created a Z-transaction for my SE49 and debugged a little bit - it's not so fantastic any longer - just like the proposal of SE80 - DDIC list.
    SE49 (and I guess similiar functions, too) just scan the source code for a list of key words: tables, select, update, insert, modify, export, import.
    But very (very!) often updates are encapsulated into function modules - and here this technical cross reference (just like SE80 DDIC list) is of no help.
    So a SQL trace (or runtime analysis) is still the best option to get a complete list. Still these tools just analysis one process - if in other circumstances more tables are involved, can't be judged.
    E.g.:
    - creating one new entry: 1 table
    - changing existing entry: 2 accesses to 1 table + log table
    Regards,
    Christian

  • I don't have very much space left on my iCloud backup. I had a previous iPhone, my current iPhone and my iPad that are all connected to one cloud. Can I delete the backup from my previous iPhone? Will it delete in the cloud AND on the phone?

    I had a previous iPhone, my current iPhone and my iPad that are all connected to one cloud. Can I delete the backup from my previous iPhone? Will it delete in the cloud AND on the phone? or does it just delete from iCloud? or does it just delete from the phone? Someone please help!

    You can delete the backup without any problem. Only the backup will be deleted from iCloud and nothing else will be deleted, so you can do it without worrying about losing data on iCloud or your devices

  • 1st - itunes downloaded to my ipod albums that are all fractured, compilation albums are seperated.This should not have happened but itunes felt it knew better. I do not like it.

    1st - itunes downloaded to my ipod albums that are all fractured, compilation albums are seperated.This should not have happened but itunes felt it knew better. I do not like it.
    2nd - While trying to fix it, itunes made all albums and artists unknown
    3rd - While trying to get an answer I am unable to contact anyone or even send an email requesting an answer.
    4th - While trying to use the "fast lane" i ran into trying to find the product S/N, I went to my account and it was not there. I tried to see it on the back of the Ipod but had to find a magnifying glass to even read it.
    5th  -- The we will get back to you really ****** me off
    6th  -- I have wasted 2 hours to fix something that should not have happened and the situation is worse than when i started
    7Th  --- Itunes management of songs is terrible and there are NO instructions and even worse no support
    8th  ----  Apple is going down the toilet because the products are good, not great, and the itunes instructions are non existent
    9th  --- to even suggest i pay for product support is insulting and a sign that apple is desperate
    10th -The suggestion for online feedback is this; BE ON-LINE SUPPORT, NOT WHATEVER YOU CONSIDER IT TO BE NOW.

    I agree with stevejobsfan - (0123).
    However, if what you actually want to do is to fix/sort out your problem, why no try posting a question on that subject?
    For starters - you can re-name the tracks in your iTunes library, so it is possible to correct the changes that you must have made that mean that songs are now "unknown artists and albums."

  • HT1849 I have received notification that  the "Complete My Album", Music Speaks by Candice Glover is now available to download.  I have three devices that are all enabled to receive automatic downloads.  My problem is the same on all three devices.  Only

    I have received notification that  the "Complete My Album", Music Speaks by Candice Glover is now available to download.  I have three devices that are all enabled to receive automatic downloads.  My problem is the same on all three devices.
    Only 0.05 minutes download on each song with the exception of the original song purchase: I Am Beautiful.  What needs to be done to solve this problem?

    It seems that I have solved my issue by performing a full factory reset (erasing all content, something which I had hoped to avoid) restoring from an iCloud backup did not alleviate the issue, I had to set up as a new iPad.
    Hopefully anyone else else who has this issue in the future will be able to find this.

  • Re : The Tables that are linked in SAP R3 Datasource

    Can any one mention what are the tables that are link to the sap data sources
    For Eg : 2LIS_11_VAHDR for the given data source what are the tables that are linked , where exactly the theses tables are stored in the database

    Hi,
    You can get this information from SAP documentation.Please check the below link.
    http://help.sap.com/search/highlightContent.jsp
    Regards,
    Raju

  • I want to create a interaractive reporting in that i want to create 3 repor

    I want to create a interaractive reporting in that i want to create 3 reporrs...I created one interactive report,,after than can I use at-line selection again or else plz help me in thsi reg ..

    Hello,
      You can write at line-selection one time only.
      After that depending upon the system field you can get the reports.
    For example , the sample code will be like this,
    At line-selection.
      case sy-lsind.
                when 1 .
                               / Code for first secodary list /
                when 2.
                               /Code for the second list/
                when 3.  / code for the third list/
                 when 20 . / code for the 20 th list/
       endcase
    Regards,
      Satya

  • What will going to happend with app that are not ready for IOS 5?

    What will going to happend with app that are not ready for IOS 5?

    Most applications will work just fine.  I typically have 150 or so apps installed, and typically only 1 or 2 will "break".  The vast majority of apps will continue to operate just as well as before if not better.  iOS developers are privy to beta testing the upcoming OS, so the week or so before and after the official release you'll see a larger number of apps needing to be updated than normal.  Last night I updated 23 apps, and you'll see alot over the next week or two getting updates.  Most are making minor changes to take advantage of new APIs, or add a new feature based on a new function of the OS (like twitter integration into the OS for example).  Very few apps, (maybe 3-4 percent??) actually are getting updated because they're broken, but there will be a few.  Most of the time, any apps that would break will have already been addressed in an update prior to the release of the new OS, and you've probably already updated that app so that it will work seamlessly and perfectly after the update hits.

  • TS1702 Hi, I can't download any application from the aap store it's on a waiting mode, I tried to update some application that I all ready have and it's the same

    Hi, I can't download any application from the aap store it's on a waiting mode, I tried to update some application that I all ready have and it's the same

    You will not lose everything on you phone if you backup prior to updating. You can do it maunaully (simply by syncing your phone with itunes) but when you update iTunes will prompt you do back up your phone anyways. After you've updated you can reload everything on to your phone with the itunes back up.

  • My Facebook App disapirs i try to put it back but the App store saids that is all ready installed but is not there, can you heló me? Thanks

    My Facebook App disapirs I try to put it back but the App Store raids that is all ready installed, but theta App it dind't show up, can you help me??? Thanks

    If you can't find it on any of your homescreens or app folders, then can you find it via the spotlight search screen (swipe your first home screen to the right) ?
    If not then have you tried a reset to see if you can find it (and/or reinstall it) after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How to find all tables that are associated with a given domain name.

    I want to find all table, excluding the structures, of a given domain name, say, waers.
    Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
    I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
    thanks in advance.

    Hi,
    The following thing may help you.
    in se11-> search for tables having names like 'DD*'.
    From this list of tables you can find the required table to get domain, data element nad table name.
    one way of doing it:
    SELECT rollname domname
      FROM dd04l
      INTO CORRESPONDING FIELDS OF TABLE it_tab.
    SELECT rollname tabname
      FROM dd03l
      INTO CORRESPONDING FIELDS OF TABLE it_tab1
      FOR ALL ENTRIES IN it_tab
      WHERE rollname = it_tab-rollname.
    SORT it_tab1.
    DELETE ADJACENT DUPLICATES FROM it_tab1.
    LOOP AT it_tab1 INTO wa_tab.
      MODIFY it_tab FROM wa_tab
      TRANSPORTING tabname
      WHERE rollname = wa_tab-rollname.
    ENDLOOP.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ wa_tab-domname,
              wa_tab-tabname.
    ENDLOOP.
    Regards,
    Manoj Kumar P

  • Can I create tables that are subsets of my master table?

    I would like to create tables (or sheets) that are subsets of the master table so that I can view different subsets of data in smaller chunks. I would like to continue to enter data in the master - and have it reflected in the subsets. Possible?
    Thank you

    Would this do what you want?
    Create a table for your subset of info. In its first cell, enter "=" & then click on the cell in the master table that you want displayed in that cell of the new table. You will get a formula of the type:
    =Table 1 :: B2
    where "B2" will be whatever cell you clicked on in Table 1.
    You can extend this formula downward or rightward with the circular blue fill handle to easily display adjacent row or column cells from the master table. You can also repeat the process starting with a new cell in the new table to display as many or as few cells of the master as you want. (You could even display different row or column values from the master in the same row or column of the new table, but I'm not sure that would be of any use.)
    Once you get the subset table set up as you want, lock it so that you cannot accidentally change its cell contents to something else.
    The result is a table slaved to the master which will automatically show any changes to the master but otherwise cannot be altered. This table can also be copied to other sheets & the formulas will be updated with the sheet reference automatically.
    The only drawbacks to this approach that I know of are that you can't enter data into the subset table (which may be a good or bad thing) & that empty cells in the master will be represented by zeros in the subset table. An 'IF(ISBLANK())" formula addition would take care of that but may not be needed.

Maybe you are looking for

  • Spry Collapsible panel - open and closed default question...

    I am using a Spry Collapsible panel in a vertical nav menu (DW CS4) and it's in a template for my site. I want it to be closed as default on the Home page, but when a visitor clicks to open it and selects their option, I would like it to remain open

  • Sharing Playlists and Music on the Same Computer with Different Users

    I'm trying to share music and playlists between different users of the same computer. Ideally I'd like to use the same iTunes music folder for all users, and have the same music and playlists show up no matter which user logs in (without having dupli

  • StAX or SAX??

    Hi everybody, I�ve got an SOAP-Message stored in a byte-array data: // copy the data (SOAP) from udp packet byte[] data = new byte[packet.getLength()]; System.arraycopy(packet.getData(), packet.getOffset(), data, 0, packet.getLength());Now I like to

  • Print panel prints blank pages

    I'm trying to runa vi, that prints the front panel after execution. However, it just prints a blank page every time. I'm using Labview 6.0.2 and Win95. Any ideas what my problem is??? Thank you.

  • FF 17.0.1 OS (Mac 10.6.8) gradually slows then hangs, sometimes crashes.

    Since I started using FF 17.0.1 I've had problems. The longer I'm on the slower FF goes. Sometimes it will hang. Might start working again or might need restarted. Sometimes it just crashes completely. Just started happening with FF 17.