answersLogoWhite

0


Best Answer

A foreign key is when a value of one table, which is a primary key of another table.

Manufacturer_table

- id

- name

Models_table

- id

- manufacturer_id

- name

Models_table.manufacturer_id should be defined is a foreign key to the Manufacturer_table.id column

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When foreign key is used?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain the concept of foreign key How a foreign key differs from a primary key?

Foreign keys are used to link one database with another. A primary key is an attribute of a record that allows users to identify information.


What is the importance of foreign key in a table?

Foreign key is used as a reference in the child table. It is important because it is used to logically relate two and more tables.


What does the term foreign key mean in databases?

A foreign key is a field in a database table that is used to establish a relationship with another table. It ensures referential integrity by enforcing a link between two tables based on a matching key. This key is typically a primary key in the referenced table.


What key defines a relationship between two tables 1 Primary key 2 Secondary key 3 Foreign key?

Foreign key is used to define a relationship between two tables by referencing the primary key of another table. It ensures data integrity and enforces referential integrity between the related tables.


The key foreign policymakers are?

The key foreign policy makers are?


Difference between foreign key and composite key?

primary key: primary creates a clustered index on the column and it doesn't allow null values. unique key: unique key creates non clustered index by default.it allows "one null value". foreign key: A foreign key (FK) is a column or combination of columns used to establish and enforce a link between the data in two tables. Fore More information, you can visit this website:http://www.iyogibusiness.com


Can a foreign key be null?

yes .a foreign key can have null values


What is a foreign key in Microsoft Access?

It is a field in one table that is a primary key in another table. It is used to create a relationship between two tables, normally a one to many relationship. The one side is where it is the primary key and where it is the foreign key, that is the many tables.


The foreign key uniquely identifies a record in a table T or F?

False. A foreign key is a primary of one table that is in another table. A foreign key can be repeated, so it does not uniquely identify records in the table where it is a foreign key.


How do you use foreign key in to oracle?

the foreign key referential between two tables.


Can a foreign-key column can contain duplicate values?

yep foreign key can have duplicate values


How do you apply a foreign key in a database?

The foreign key is a reference to a key (identifier) of a row in another or even the same table. When the foreign key is not null, it implies that there's an entry in the referenced table with that identifier. The syntax depends on wich database are you using, check the page in the related links below.