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...


what is the difference between primary key & foreign key?

Answers were Sorted based on User's Feedback



what is the difference between primary key & foreign key?..

Answer / vij&pani

Primary key is unique key but foriegn key always refers to
primary key

Is This Answer Correct ?    327 Yes 50 No

what is the difference between primary key & foreign key?..

Answer / ramprakash

Primary keys enforce entity integrity by uniquely
identifying entity instances. Foreign keys enforce
referential integrity by completing an association between
two entities.

Is This Answer Correct ?    275 Yes 50 No

what is the difference between primary key & foreign key?..

Answer / guest

Primary key is unique
primary key is not NULL and

foreign key is NULL
foreign key reference as Primary key in another table

Is This Answer Correct ?    250 Yes 62 No

what is the difference between primary key & foreign key?..

Answer / guest

primary key is used to identify a row and it doesnot allow
null values. It avoids duplication of rows.

whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity.

Is This Answer Correct ?    155 Yes 19 No

what is the difference between primary key & foreign key?..

Answer / muneer

Primary Key is unique Key entire the table and which is
also NOT NULL
where as foriegn key is the null & which references the
primary key .

Is This Answer Correct ?    147 Yes 28 No

what is the difference between primary key & foreign key?..

Answer / shaik gouse peer

Basic difference betweeen Primary key and foreign key is :

Primary key will not allow "Null values" and "Duplicate
values"

Foreign key will allow "Null values" and "Duplicte values"
and it refers to a primary key in anoter table.

Is This Answer Correct ?    130 Yes 25 No

what is the difference between primary key & foreign key?..

Answer / guest

primary key is the parent and foreign is the child.

Is This Answer Correct ?    132 Yes 73 No

what is the difference between primary key & foreign key?..

Answer / hardik patel

primary key is used to identify a row and it doesnot allow
null values. It avoids duplication of rows.

whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity.

Is This Answer Correct ?    65 Yes 20 No

what is the difference between primary key & foreign key?..

Answer / gaurav , ashish ,preeti , main

Primary key is used to identify a row in a table and it
doesnot allow null values. It avoids duplication of rows.

whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity

Is This Answer Correct ?    57 Yes 16 No

what is the difference between primary key & foreign key?..

Answer / raghu

In the context of relational databases, a foreign key is a
referential constraint between two tables.[1] The foreign
key identifies a column or a set of columns in one
(referencing) table that refers to a column or set of
columns in another (referenced) table. The columns in the
referencing table must form a primary key or unique key.

Is This Answer Correct ?    58 Yes 20 No

Post New Answer

More Oracle General Interview Questions

how can db_files > maxdatafiles since db_files is for instance and the later is for database

0 Answers   CTS,


What are the types of synonyms?

1 Answers  


What is a deadlock in SQL? How can you prevent it?

1 Answers  


What is the data type of dual table?

0 Answers  


what is the use of composite key constraint?

2 Answers  


We need to compare two successive records of a table based on a field. For example, if the table is CUSTOMER, and the filed is Account_ID, To compare Account_IDs of record1 and record2 of CUSTOMER table, what can be the query ?

3 Answers  


what is the syntax of ALTER command?

8 Answers  


How to rename an index in oracle?

0 Answers  


What does COMMIT do ?

4 Answers  


Why do we need oracle client?

0 Answers  


How to display row numbers with the records?

0 Answers  


material view and view disadvantages?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)