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

What are the different types of database objects?

990


How would you change old and new values in an insert, delete and update triggers?

950


What is Virtual Private Database in Oracle?

1014


In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col

4114


What is open database communication (odbc) in oracle?

947


What is oracle thin client?

972


What is the fastest query method to fetch data from the table?

1291


What types of joins are used in writing subqueries?

936


How to create a temporary table in oracle?

1190


Does oracle database need java?

940


Can we protect our pl/sql source code?

992


How view is different from a table?

966


How to run create database statement again?

1076


What is oracle database client?

974


What is an external table?

957