How is data integrity maintained in a relational database?

  • By allowing NULL values in critical columns.
  • By implementing foreign key constraints to enforce relationships between tables.
  • By using triggers for automatic data validation.
  • Through regular backups and restores.
Data integrity in a relational database is maintained by implementing foreign key constraints. These constraints ensure that relationships between tables are enforced, preventing orphaned or inconsistent data. Understanding and properly defining these relationships is fundamental to database design.
Add your answer
Loading...

Leave a comment

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