what is the difference between primary key & foreign key?
Answers were Sorted based on User's Feedback
Answer / gajendra jain
A table can have only one Primery key but it can have any number of Foreign key.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / anand
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 ? | 0 Yes | 1 No |
Answer / abhishek ranjan
The main diference between primary key and the foreign key is that the primary key is a column or a set of columns that can be used to uniquely identify a row in a table while the foreign key is a column or a set of columns that refer to a primary key or a candidate key of another table. Foreign key mainly provides a method to link information in several tables. Another difference is that a table can have a single primary key, but it can have multiple foreign keys that can reference different tables.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / leang heng
Primary Key is a column or group of columns that determine
in each Record to make not null.
Foreign Key is Column that provide Relationship to Primary
Key between Entities or Table.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / praneeth
primary key helps in uniquely identifying the records in a table
a foreign key is a field that points to the primary key of another table which links one table to another table
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / aarti
Primary Key : It is a unique key of the table.Unique for
each record in the table(e.g ID).
Foreign Key : When a primary key is used as a reference key
in another table then it is called as a foreign key.It is
used to link two tables.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / keyman
Foreign key = Florida Keys (Keys in a foreign land)
Primary Key = The main key you use to enter you home
| Is This Answer Correct ? | 12 Yes | 36 No |
What are triggers in oracle?
What is ADDM Advisor in Oracle?
What are the attributes of the cursor?
What is the difference between an Oracle Schema and an Oracle Instance?
What is a connect identifier?
What is a cluster Key ?
How do I connect to oracle database?
According to oracle specification VIEW is a object. OBJECT that means anything stored in the oracle database that has the physical existence.why VIEW doesn't take memory in oracle database, but it is treated as a object ?Please explain ?
What is the difference between $oracle_base and $oracle_home?
How do we create privileges in oracle?
Explain integrity constraint?
2. Display the post code and the total number of purchase orders placed with creditors in that post code.