dbTalk Databases Forums  

Foreign Key Constraint

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Foreign Key Constraint in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Magnet
 
Posts: n/a

Default Foreign Key Constraint - 07-15-2011 , 08:44 AM






Hi,

I need to make a FK constraint, but it is against a table where the
column is not a PK, can this be done?

Table1:
Customer ID \ Composite Primary Key
Portfolio ID / Composite Primary Key

Table 2:
Portfolio ID: Non unique and must exist in Table 1

Thanks!

Reply With Quote
  #2  
Old   
joel garry
 
Posts: n/a

Default Re: Foreign Key Constraint - 07-15-2011 , 12:57 PM






On Jul 15, 6:44*am, The Magnet <a... (AT) unsu (DOT) com> wrote:
Quote:
Hi,

I need to make a FK constraint, but it is against a table where the
column is not a PK, can this be done?

Table1:
* Customer ID *\ *Composite Primary Key
* Portfolio ID * */ *Composite Primary Key

Table 2:
* Portfolio ID: *Non unique and must exist in Table 1

Thanks!
"Primary or unique" http://download.oracle.com/docs/cd/E....htm#CNCPT1649

Look in asktom for common problems with fk's.

jg
--
@home.com is bogus.
http://www.bloomberg.com/news/2011-0...-tax-view.html

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.