Site icon DocMCQs.Com

What does an RDBMS consist of?

a) Collection of Records
b) Collection of Keys
c) Collection of Tables
d) Collection of Fields

A foreign key is a column (or a set of columns) in one table that refers to the primary key of another table. It establishes a link between the two tables, ensuring data consistency and integrity.  

1. sampletestcases.com

sampletestcases.com

2. medium.com

medium.com

Imagine this:

The “Customer ID” in the “Orders” table is a foreign key. It references the “Customer ID” in the “Customers” table. This means that every order must be associated with an existing customer.

Key points about foreign keys:

By using foreign keys, you create a structured and connected database where information can be easily managed and retrieved.

Exit mobile version