Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi how Can I Add A Foreign key that references a table that
has composit primary key ?
example i had costumer table that has C_Id and SSN Both as
PK and another table has C_Id that must refernece C_Id in
Customers i done the usual way and got oracle error message
about uniqeness any ideas plz

Answer Posted / mrs.priya

try to separate the composite key using str function when
referencing in another function to get only C_ID

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort output in descending order in oracle?

1045


There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??

2026


How to use fetch statement in a loop?

1019


how to do daily transactions with out sql* loader control file regesterd in apps?

1687


In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?

2341


Can we use bind variables in oracle stored procedure?

950


what are the default admin accounts in Oracle 10g ?

967


How view is different from a table?

1035


How to import one table back from a dump file?

1025


How to retrieve values from data fields in record variables?

1115


How to define a data field as not null?

1107


How to calculate date and time differences in oracle?

1042


How to use select statement to count the number of rows in oracle?

1044


What is a database schema in oracle?

1110


How a tablespace is related to data files?

1109