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.
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХрд╛ рд╕рд╣реА рдЕрдиреБрд╡рд╛рдж рдЪреБрдиреЗрдВ:
(i) Sovereign guarantee тАУ рд╕рд╛рд░реНрд╡рднреМрдорд┐рдХ...
рднрд╛рд░рдд рд╕рд░рдХрд╛рд░ рдиреЗ рдХрд┐рд╕ рдирд┐рдпрдо рдХреЗ рдЕрдиреБрд╕рд╛рд░ рд░рд╛рдЬрднрд╛рд╖рд╛ рд╡рд┐рднрд╛рдЧ рдХреЛ рдХрд╛рд░реНрдп рд╕реМ...
рдпрджрд┐ рдХрд┐рд╕реА рд╡реНрдпрдХреНрддрд┐ рдХреЛ рдЙрдЪреНрдЪрддрдо рдиреНрдпрд╛рдпрд╛рд▓рдп рдореЗрдВ рдХреЛрдИ рдЬрдирд╣рд┐рдд рдпрд╛рдЪрд┐рдХрд╛ я┐╜...
рдиреАрдЪреЗ рджрд┐рдП рдЧрдП рд╢рдмреНрджреЛрдВ рдХрд╛ рд╕рд╣реА рд╣рд┐рдВрджреА рдЕрдиреБрд╡рд╛рдж рд╡рд┐рдХрд▓реНрдкреЛрдВ рд╕реЗ рдЪрдпрди рдХрд░реЗ...
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рд╡рд╛рдХреНрдп рдХрд╛ рд╕рд╣реА рдЕрдиреБрд╡рд╛рдж рдХреМрди-рд╕рд╛ рд╡рд┐рдХрд▓реНрдк рдирд╣реАрдВ рд╣реЛрдЧрд╛ред
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ Occupational immobility рд╢рдмреНрдж рдХрд╛ рд╡рд┐рддреНрддреАрдп рд╢рдмреНрджрд╛рд╡рд▓...
рдирд┐рдореНрдирд╛рдВрдХрд┐рдд рдореЗрдВ рдХреМрди рднрд╛рд░реЛрдкреАрдп рдкрд░рд┐рд╡рд╛рд░ рдХреА рднрд╛рд╖рд╛ рдирд╣реАрдВ рд╣реИ ?
A bridged report
рдиреАрдЪреЗ рджрд┐рдП рдЧрдП рд╢рдмреНрджреЛрдВ рдХрд╛ рд╕рд╣реА рдЕрдиреБрд╡рд╛рдж рд╡рд┐рдХрд▓реНрдкреЛрдВ рд╕реЗ рдЪрдпрди рдХрд░реЗрдВ:
я┐╜...
рдиреАрдЪреЗ рджрд┐рдП рдЧрдП рд╡рд╛рдХреНрдпреЛрдВ рдХреЗ рд╕рд╣реА рдЕрдиреБрд╡рд╛рдж рдХрд╛ рдорд┐рд▓рд╛рди рдХрд░реЗрдВ рдФрд░ рдЙрдЪрд┐рдд рд╡рд┐я┐╜...