Question
Which of the following integrity constraints ensures
that every non-null foreign key value must reference an existing primary key value in another table?Solution
Referential integrity enforces a relationship between two tables by ensuring that a foreign key in one table matches a valid primary key in another table. This constraint guarantees that the data is consistent and prevents "orphan" records. For example, in an "Orders" table with a foreign key referencing a "Customers" table, referential integrity ensures that every order must belong to an existing customer. If a foreign key value does not match any primary key value in the referenced table, the database system will reject the operation, ensuring data consistency. Why Other Options Are Incorrect:
- Option A: Entity integrity relates to primary keys, ensuring they are unique and not NULL. It does not address relationships between tables.
- Option C: Domain integrity enforces the validity of data types and permissible values for attributes, such as ensuring an "age" column only contains integers.
- Option D: Key integrity is not a formal term in relational database theory. It may be confused with primary or candidate key constraints but is not relevant here.
- Option E: Tuple integrity is not a standard concept in relational databases, making this option invalid.
As part of its borrowing plan, the Government will issue Sovereign Green Bonds (SGrBs) in H2 of FY 2024-25. What is the total value of SGrBs to be issue...
Who invented the telephone?
“ An act 2002 of parliament of India enacted by NDA to prevent money laundering and to provide confiscation of property derived from money laundering�...
The headquarter of International Cricket Council is located at:
Recently, Union Minister of Earth Sciences Dr Harsh Vardhan inaugurated India’s fastest and first multi-petaflops supercomputer in Pune. Its name is:...
Fiat Money is backed by government guarantee
The Gol Gumbad (Gumbaz) of ______is the mausoleum of Muhammad Adil Shah.
Where is the Headquarter of New Development Bank (NDB)?
Planetary scientists call the thin gaseous envelope around the Moon as the _______.
Who has been recently appointed as the MD & CEO of National Payment Corporation of India (NPCI)?