When designing a schema for a SQL database in Node.js, the ______ key is used to establish a relationship between two tables.

  • Foreign
  • Index
  • Primary
  • Composite
When designing a schema for a SQL database in Node.js, the Foreign Key is used to establish a relationship between two tables. It creates a link between a field in one table and the primary key of another table, enabling data integrity and referential integrity.
Add your answer
Loading...

Leave a comment

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