Question: A database contains a table named PETS and a table named OWNERS. The OWNERS table contains information about pet owners, and the PETS table stores
A database contains a table named PETS and a table named OWNERS.
The OWNERS table contains information about pet owners, and the
PETS table stores details about various pets. These tables are related
through a common attribute, such as an owner ID
Suppose we delete the row with owner ID because this owner no longer owns any Pets. How is referential integrity assured?
Question options:
The database system must ensure that all rows with foreign keys are removed from the PETS table.
The database system must ensure that there are no pets in the PETS table with owner id
All owners with owner ID must be deleted from the OWNERS table.
All Pets in the PETS table must be re indexed to assure that there are no duplicates.
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
