Question: QUESTION 9 2 In a relational database, what is the purpose of a primary key and a foreign key? a . Primary key ensures data
QUESTION
In a relational database, what is the purpose of a primary key and a foreign key?
a
Primary key ensures data integrity by preventing duplicate values in a table, while a foreign key defines relationships between tables.
b
Primary key is used for sorting records in descending order, while a foreign key is used for sorting records in ascending order.
c
Primary key is used is used for sorting records in ascending order, while a foreign key is used for sorting records in descending order.
d
Primary key is a unique identifier for a table, while a foreign key is used to store redundant information for backup purposes.
e
Primary key is used to encrypt sensitive data, while a foreign key is used to decrypt data during retrieval.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
