what is the difference between primary key & foreign key?

Answer Posted / navane

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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State some uses of redo log files?

568


What are a cluster and non-cluster index?

576


Explain a private synonyms?

637


Difference between inner join vs where ?

613


How to use "in out" parameter properly?

617






What are the numeric comparison operations?

633


What are the most common interview questions on ETL Testing for experience?

597


What is the difference between a primary key & a unique key?

590


Briefly explain what is literal? Give an example where it can be used?

546


How to establish administrator authentication to the server?

559


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

557


How to bring a tablespace offline?

543


How would you begin to troubleshoot an ORA-3113 error?

1605


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

512


What is an oracle function?

601