Scenario: A developer is designing a new database schema in DB2 and wants to ensure robust data integrity. What strategies can they implement during the design phase?

  • Utilizing referential integrity constraints to enforce relationships between tables
  • Implementing check constraints to enforce domain-specific rules on column values
  • Utilizing triggers to automatically perform actions based on data modifications
  • Employing stored procedures to encapsulate complex data manipulation logic
Option 1: Utilizing referential integrity constraints ensures that relationships between tables are maintained, preventing orphaned or inconsistent data. By defining foreign key constraints, developers can enforce data integrity rules at the database level, ensuring data consistency and accuracy. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *