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 / shree

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


Primary key is unique
primary key is not NULL and

Is This Answer Correct ?    46 Yes 12 No

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

Answer / simbu

primary key is a keyword .that refers to the unique value
in the particular record.it cant have null

foreign key is always keyword that refers primary key.it has
null value.its refers to another table

Is This Answer Correct ?    34 Yes 8 No

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

Answer / rohit tyagi

forign key includes the information that primary key
contains,but primary key does not include the information
of forein key.

thaks[something different,isn't it!]

Is This Answer Correct ?    28 Yes 5 No

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

Answer / raji

foregin key reference a primary key in another table

and primary key is used to identify a row.

Is This Answer Correct ?    30 Yes 10 No

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

Answer / harish

primary key does not allow duplicate and null values
but foreign key allows null values it refers primary key

Is This Answer Correct ?    25 Yes 10 No

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

Answer / mathiyarasan

Primary is unique one. Each table has only one primary key.
But not allow null values.

Foreign key is opposite of primary. It is reference of
primary key from another table. It allow Null value. Each
table can have more than one foreign key.

Foreign key is used to link one to another table.

Is This Answer Correct ?    22 Yes 7 No

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

Answer / deepa

Primary key is a keyword.
It should not have null value and duplicate value.
We can have only one primary key in a table and the value
should be unique.

Foreign key is a keyword.
It can have null value and duplicate value.
We can have more than one foreign key for a table and this
froeign key table references the primary key table.

Is This Answer Correct ?    22 Yes 7 No

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

Answer / mithun

primary key is the unique value,but its not nul values..
this kry is avoided dublicate values

foreign key is always references the primary key.

Is This Answer Correct ?    21 Yes 8 No

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

Answer / afzaal

primary key is a constraint key that can not contain a null
or duplicate values.
foriegn key is a reference key ,before referencing the
foriegn key parent table field or fields must have primary
key.If u can try to insert a value in referencing field,new
record that must contain parent field.

Is This Answer Correct ?    22 Yes 11 No

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

Answer / altaf ali

primary key of a relation is a candidate key that has been
designated as the main key.It doesn't has null value.

A foreign key is an attribute in a relation that can be
used as a key to another relation.It allow null and
duplicate value.

Is This Answer Correct ?    16 Yes 5 No

Post New Answer

More Oracle General Interview Questions

What to do if the startbd.bat failed to start the xe instance?

0 Answers  


what is difference between sql plus and sql*plus? (not sql and sql plus).

0 Answers  


what is the difference between rollback & commit? can a foreign key has null value?

6 Answers  


Explain the use of owner option in exp command.

0 Answers  


hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.

0 Answers  






what is integrity constrains?

3 Answers  


what is the syntax of CREATE command?

8 Answers  


Write a simple Store procedure and pass parameter to it ?

3 Answers   Keane India Ltd,


hai, I am searching job on Oracle10g and PL/sql,Unix... can any one send me resume format. an suggest me how to prepare.. ann books..

1 Answers  


What is catalog in Oracle?

0 Answers   MCN Solutions,


What is meant by redo log buffer ?

2 Answers  


What is a heap related to database ?

1 Answers   TCS, University of Edinburgh,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)