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

nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls

2199


What is recovery manager in Oracle?

1050


Explain the difference between a procedure and a function?

1165


What is meant by joins?

1057


Explain oracle insert into command?

1108


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1896


How to create a new table in oracle?

1147


What is background process in Oracle?

1099


What is Virtual Private Database in Oracle?

1083


What is hot backup and logical backup?

1047


What are a query and state the different types of queries and their uses?

1011


Name the various constraints used in oracle?

1011


What is a user account in oracle?

1119


Is primary key indexed by default in oracle?

981


Explain what are synonyms used for?

1033