Is it possible to create foreign key from composite key in other table.

SQL> desc PRODUCT_CONFIG_OPTION;
Name Null? Type
CONFIG_ITEM_ID NOT NULL VARCHAR2(20) --composite primary key
CONFIG_OPTION_ID NOT NULL VARCHAR2(20) --composite primary key
CONFIG_OPTION_NAME VARCHAR2(100)
DESCRIPTION VARCHAR2(255)
SEQUENCE_NUM NUMBER(18)
LAST_UPDATED_STAMP TIMESTAMP(6)
LAST_UPDATED_TX_STAMP TIMESTAMP(6)
CREATED_STAMP TIMESTAMP(6)
CREATED_TX_STAMP TIMESTAMP(6)
SQL> DESC PRODUCT_CONFIG_ITEM;
Name Null? Type
CONFIG_ITEM_ID NOT NULL VARCHAR2(20)
CONFIG_ITEM_TYPE_ID VARCHAR2(20)
CONFIG_ITEM_NAME VARCHAR2(100)
DESCRIPTION VARCHAR2(255)
LONG_DESCRIPTION CLOB
IMAGE_URL VARCHAR2(255)
LAST_UPDATED_STAMP TIMESTAMP(6)
LAST_UPDATED_TX_STAMP TIMESTAMP(6)
CREATED_STAMP TIMESTAMP(6)
CREATED_TX_STAMP TIMESTAMP(6)
SQL> desc product;
Name Null? Type
PRODUCT_ID NOT NULL VARCHAR2(20)
PRODUCT_TYPE_ID VARCHAR2(20)
PRIMARY_PRODUCT_CATEGORY_ID VARCHAR2(20)
MANUFACTURER_PARTY_ID VARCHAR2(20)
FACILITY_ID VARCHAR2(20)
INTRODUCTION_DATE TIMESTAMP(6)
SUPPORT_DISCONTINUATION_DATE TIMESTAMP(6)
SALES_DISCONTINUATION_DATE TIMESTAMP(6)
SALES_DISC_WHEN_NOT_AVAIL CHAR(1)
INTERNAL_NAME VARCHAR2(255)
BRAND_NAME VARCHAR2(100)
COMMENTS VARCHAR2(255)
=========
CREATE TABLE PROD_CONFIG_PROD_CONFIG_OPTION (
PRODUCT_ID VARCHAR2(20),
CONFIG_ITEM_ID VARCHAR2(20),
CONFIG_OPTION_ID VARCHAR2(20),
PAGE_NUM_TO NUMBER(18),
ALTERNATE_PAGE_NUM_TO1 NUMBER(18),
ALTERNATE_PAGE_NUM_TO2 NUMBER(18),
ALTERNATE_PAGE_NUM_TO3 NUMBER(18),
LAST_UPDATED_STAMP TIMESTAMP(6),
LAST_UPDATED_TX_STAMP TIMESTAMP(6),
CREATED_STAMP TIMESTAMP(6),
CREATED_TX_STAMP TIMESTAMP(6),
CONSTRAINT PK_PROD_CAT_CONFIG_MOD PRIMARY KEY (PRODUCT_ID),
CONSTRAINT FK_PRODUCT_ID FOREIGN KEY (PRODUCT_ID) REFERENCES PRODUCT(PRODUCT_ID),
CONSTRAINT FK_CONFIG_ITEM_ID FOREIGN KEY (CONFIG_ITEM_ID) REFERENCES PRODUCT_CONFIG_ITEM(CONFIG_ITEM_ID),
CONSTRAINT FK_CONFIG_OPTION_ID FOREIGN KEY (CONFIG_OPTION_ID) REFERENCES PRODUCT_CONFIG_OPTION(CONFIG_OPTION_ID) )
TABLESPACE DATA_SMALL
i try to create this table if i omit 3rd foreign key constraint then table successfully created.but including trd foreign key constraint it return error "ORA-02270: no matching unique or primary key for this column-list"
i checked everything is it possible to create foreign key from composite key in other table.

And
CONSTRAINT FK_CONFIG_OPTION_ID FOREIGN KEY (CONFIG_ITEM_ID,CONFIG_OPTION_ID) REFERENCES PRODUCT_CONFIG_OPTION(CONFIG_ITEM_ID,CONFIG_OPTION_ID)
?

Similar Messages

  • HT204053 the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    Isa Garduño wrote:
    the only way to creat an icloud account is with a ipad, iphone or imac Apple computer.
    As you already knew, no, you cannot create a new iCloud account from anything but the above devices.
    http://support.apple.com/kb/HT4436

  • Is it possible to create an activity from the Agenda?

    Hi Experts,
    We noticed that it's possible to create a note from SSC1 Tcode but not an activity.
    When we create an activity (appointment), it appears in the agenda but  we can't manage to create it from the agenda.
    Is there any possibilities ?
    Many Thanks
    Laurent

    Hi,
    You can create the activity by double clicking on appointment calendar.
    Go to Tcode : crmd_order and select calendar tab.Double click on any time of the calendar and select the appropriate transaction type for activity.
    Then you will be able to create the activity.
    If helpful kindly reward me.
    Thanks & Regards,
    Anirban

  • Is it possible to create an account from Switzerland ?

    Is it possible to create an account from Switzerland ?

    Sure - Switzerland is on the list of countries supported for purchasing a subscription.  You can sign up for a Free or Paid account from Switzerland, in general for purchasing a subscription you just need to have a credit card with the billing address in any of the following countries: In which countries is FormsCentral available for purchase?
    Thanks,
    Josh

  • Possible to create an object from a String?

    Hi,
    is is somehow at all possible to create an object from a String ?
    If we have etc.
    String txt = "Carrot()";
    Is it then possible to somehow cast that String and interpret it as a class type that it should make an object of ?
    Like
    new txt; - would then give me the same as new Carrot(); ?
    Hope you understand what i mean.
    Martin From... :-)

    Class.forName("some.package.Carrot");

  • Is it possible to create a contact from information in a spreadsheet?

    I have a numbers spreadsheet with name, address, phone numbers, email address, etc. for 100 people. Is it possible to create cards in my Contacts without retyping the information?

    Well, this is much easier than I thought.
    As long as you have a Numbers file structured as follows:
    (you can have more info, i.e 2nd tel# email, etc)
    In Numbers, File->Export to->CSV FIle
    Then in Contacts, all you need to do is File->Import, and select the csv file,
    and you'll be given a choice of how to fill in the data to Contacts:
    First, Backup (Contact->File->Export...->Contacts Archive), so if somthig goes wrong with the import, you can start over at square one.

  • Creating Time Dimension from date columns in fact tables.

    I remember watching a demo from a BI Tool a couple years ago, wich I swear was OBIEE, and the presentator stated it was possible to create a Time Dimension in the admin tool, based on a date column in other table.
    Can you guys tell me if there's such functionality in OBIEE?
    If so, how could I achieve that?!
    Thanks in advance!
    Marcos

    hi,
    You are trying to make Fact table as Dim table ???
    Fact table has some dim columns??
    We can do this by making a fact table as dim table ,create a dim hierarchy on that table
    Year level :Extract(year from fact_date_column)
    Month and year  level:CAST (Extract(month from fact_date_column) As CHAR(5) ) || CAST (Extract(yearfrom fact_date_column) As CHAR(5) )
    Like this
    But,be careful while doing this make sure that all joins and content levels are good
    As per my knowledge this is not a good way,Experts can add some words lets see!!!!!! :-)
    thanks,
    saichand.v

  • Is it possible to create video material from the new Apple Maps app? Has anyone attempted this?

    I'm interested in creating a mini movie/video of key locations on Apple maps. Can you plot, rotate 3D, flyover a number of locations to tell a story and then download it as a movie? Anyone attempted this?

    Unless you deleted the previous version, it is retained in the iWork 09 folder in Applications.
    Apple no longer supply the previous version of Keynote (it was part of iWorks 09), but it can be purchased on eBay as a DVD disc.
    If you want to remove Keynote 6, right click the icon in Applications and select move to trash.
    Keynote 6.1 works well, it has some issues with converting from older version files and has some features missing from the previous version but it is usable and stable, I use it every day without any problems.
    Keynote 6.1 does have an inspector, its the side panel on the right.
    If it is not in view, click either the Format, Animate or Setup buttons top right on the Keynote tool bar.

  • Is it possible to create a photo from a video in iPhoto?

    I have a short video from which I would like to create a still / standard photo.  Is there a way of doing this?
    Thanks

    iPhoto does not support to extract still frames. The quickest way to create a still frame in iPhoto is to view the video in full screen mode and to take a screenshot of the frame you want - simply type the key combination ⇧⌘3 . This will save a screenshot on your Desktop.

  • Possible to "create" new record from queries

    hi ,
    is it possible that i can get a "new" record using queries instead of thru pl/sql ?
    i have the following table :
    tbl1 :
    id time1 time2 type
    1 07-10-2006 03:00:00am 07-10-2006 04:00:00 am A
    1 07-10-2006 04:01:00am 07-10-2006 04:45:00 am B
    1 07-10-2006 04:50:00am 07-10-2006 07:00:00 am A
    tbl2
    id time type
    1 07-10-2006 05:00:01am K
    notice that tbl2 record falls between time1 & time2 of tbl1's 3rd record and i want to create a "new" record in tbl1 from tbl2
    the final results would be :
    id time1 time2 type
    1 07-10-2006 03:00:00am 07-10-2006 04:00:00 am A
    1 07-10-2006 04:01:00am 07-10-2006 04:45:00 am B
    1 07-10-2006 04:50:00am 07-10-2006 05:00:01am A
    1 07-10-2006 05:00:01am 07-10-2006 07:00:00 am K
    tks & rgds

    What happens if the time from tbl2 is not include into any interval from tbl1 ?
    Anyway, you can try something like following - with MERGE -, but it will work only in case of the time from tbl2 is include into an interval from tbl1 :
    SQL> select * from tbl1;
            ID TIME1               TIME2               T
             1 07/10/2006 03:00:00 07/10/2006 04:00:00 A
             1 07/10/2006 04:01:00 07/10/2006 04:45:00 B
             1 07/10/2006 04:50:00 07/10/2006 07:00:00 A
    SQL> select * from tbl2;
            ID TIME1               T
             1 07/10/2006 05:00:01 K
    SQL>
    SQL> merge into tbl1 a
      2  using (select b.rowid rwd, b.id, b.time1, c.time1 time2, b.type
      3         from   tbl1 b, tbl2 c
      4         where  b.id=c.id
      5         and    c.time1 > b.time1
      6         and    c.time1 < b.time2
      7         union all
      8         select null rwd, c.id, c.time1, b.time2 time2, c.type
      9         from   tbl1 b, tbl2 c
    10         where  b.id=c.id
    11         and    c.time1 > b.time1
    12         and    c.time1 < b.time2) d
    13  on (a.rowid=d.rwd)
    14  when matched then update set a.time2=d.time2
    15  when not matched then insert (a.id, a.time1, a.time2, a.type) values (d.id, d.time1, d.time2, d.type);
    2 rows merged.
    SQL>
    SQL> select * from tbl1;
            ID TIME1               TIME2               T
             1 07/10/2006 03:00:00 07/10/2006 04:00:00 A
             1 07/10/2006 04:01:00 07/10/2006 04:45:00 B
             1 07/10/2006 04:50:00 07/10/2006 05:00:01 A
             1 07/10/2006 05:00:01 07/10/2006 07:00:00 K
    SQL> Nicolas.

  • Is it possible to create data control from wsdl when complextype is used

    Getting DCA-40015 error when trying to create a data control from WSDL file.
    The error clearly says complextype is not supported . just trying to see if there are any workarounds . because creating data control will save time in developing user interface by dragging and dropping the the data control in jsf page. jdeveloper webservice tester is able to create user interface for me based on wsdl when i run it , trying to develop the user interface using jsf pages
    oracle.adf.model.adapter.AdapterException: DCA-40015: Failed to create the structure for schema element "result". The complex type definition of the element is not supported.

    Hi,
    I could reproduce what I did:
    - created WebService from custom Pojo Model
    - Made sure all entities implemented serializable
    - In the WebServices Wizard, I created XML representations for my entities
    - tested with OC4J WebServices tester
    - Built ADF data control from WSDL file of deployed WebService
    - Created dependency t project containing the POJO entities
    - Selected result.xml of each method exposed in the WebService project
    - In the structure window, selected "item" (result-->item)
    - changed Bean class to my entity class name (absolute name)
    This showed my entity in the DC palette
    Frank

  • Is it possible to create a multiclip from different formats?

    Hello,
    I have footage from 3 cameras: 2 HDV (1440x1080) from Sony Z7 and 1 HD (1920x1080) from Sony EX-3. I could not find a way to create a multiclip in FCP 7; I get the message: The video frame sizes don't match. Is there a way to do after all? Maybe if I change the codec and frame size of the HD material and render it according to HDV, would that work?
    thanks a lot
    y

    Yes, that's the way to go. To be able to make a multiclips all sources must be in the exact same codec en specifications.
    If you want to output to tape at the end, then stay in HDV. Otherwise I'd recommend to transcode the HDV to match the EX3 footage...
    Rienk

  • Is it possible to creat a playlist from the 'Up Next' list?

    That may seem odd, but the reason is this.
    For our labs I'd like to crate playlist that play files from our shared libraries.
    Cut down on the piracy of our vast music collection in our university music dept.

    If I'm may quote secret agent Maxwell Smart. "Missed it by that much."
    You answer to my question is 100% correct and that function is pretty cool. Good to know!
    However, this feature allowed me to discover that what I wanted to do does is not possible. Up Next can contain songs from a shared library (wich I find to be an outstanding extension of iTunes networked functionality). However, it does not provide for the ability to put content from a shared resource into a playlist. This is probably a fairly straight forward possibility, technically speaking, but doubt Apple will put too much effort into this at this time.
    Thanks for answering the question that I asked! kudos to you Steve.

  • Is it possible to create a link from a picture's metadata to a test file?

    Hi everyone,
    I am looking for a way to get a direct link to the picture's deposited right of utilisation. I prefer a link in the picture's meta data to a text file - e.g. pdf or doc. Is that possible?
    PC with Lightroom5.
    Thanks a lot for help!

    To build on Ian's suggestion, you can include URLs to files on the computer, e.g.
    An easy way to construct such a URL is to go to your browser, give the Open File command (in Chrome, it's File > Open File), and then browse to the desired file.  The browser will open the file, and you can copy the URL from its address bar.
    If you don't like using the IPTC:Website field for this purpose, or if you want more than one field in which to store URLs, I think the Custom Metadata plugin would provide that capability. The author is very helpful and a frequent contributor here.
    Finally, you might consider my Any File plugin.  It lets you directly import files of any type into your catalog.  For example, you could import the release PDFs for an image and stack the release and the image together.

  • Possible to create an Application from Spreadsheet with Korean?

    When I try to use the wizard from importing a .csv file with Korean, Arabic, Japanese, etc. I choose UTF-8 as the File Character set, but the text comes in as "????-?????" Is there a way to get around this? Thanks.

    user561559,
    There are two possible explanations for this:
    1) You're inserting this data into a database with a character set which cannot support the encoding of these characters
    or
    2) The data you're importing via CSV is not encoded in UTF-8. If you're generating these CSV files from MS Excel, then the default CSV encoding will be specific to your client locale. If Arabic, it will be Arabic Windows 1256. If Korean, it will be Korean EUC (or Korean Windows 959). If Japanese, then it will be most likely Shift JIS.
    It will almost never be utf-8 coming from Excel, unless you explicitly export the data into utf-8.
    Joel

Maybe you are looking for

  • How can I use an iPad upgrade for an iPhone?

    My iPad (Verizon) and iPhone were stolen from my car. My iPad has an upgrade available. I understand that normally the iPad can only be upgraded to another tablet. But someone told me I may be able to switch the upgrade to a phone. I have an old Veri

  • Reader fails to print some files which Evince prints

    I am using a Canon MP510 printer with no problems except with Acrobat Reader 8.1.4. Reader 8.1.4 will print some pdf files provided I choose the option "Save Printer Memory". However other files fail to be printed although there is no problem printin

  • HT1515 my airport express in not detected?

    my airport express in not detected by my airport utility, and i want to conected to the wi fi of an internet conection.

  • How do you tell which build you are running?

    Build? Renee "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me

  • Iff statement results in #Error

    This formula results in an error when the first value is true, otherwise it works fine.  If the budget_quanty > 0 then it works just fine. What am I missing? I am trying to calculate the percent of budget to actual.  This is used as an expression in