Relational databases contain multiple tables that relate to each other in some way. How are primary and foreign keys used in such a database?
What will be an ideal response?
Most tables have a primary key, which is a field that uniquely identifies each record in the table. When two tables are related, a common field relates the tables to each other. The common field will exist in both tables. The common field in the first table is the primary key in the first table, and it is used to uniquely identify each record in the table. The common field in the second table is referred to as the foreign key because it links the record back to the first table.
Computer Science & Information Technology
You might also like to view...
Public keys are known only to specific users who keep the key secret
Indicate whether the statement is true or false
Computer Science & Information Technology
A class's ____constructor is automatically supplied.
A. initial B. object C. default D. destructor
Computer Science & Information Technology