In a relational database, what is used to ensure data integrity across multiple tables?

  • Primary Key
  • Foreign Key
  • Index
  • Trigger
A Foreign Key is used in a relational database to ensure data integrity by creating a link between tables. It enforces referential integrity, ensuring that values in one table match values in another. Primary Keys are used to uniquely identify records in a table, not to maintain integrity across tables. Indexes and Triggers serve different purposes.
Add your answer
Loading...

Leave a comment

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