Scenario: A company wants to ensure that every order placed in their system has a corresponding customer. Which type of constraint would you apply to the order table to enforce this rule?

  • Check Constraint
  • Foreign Key Constraint
  • Primary Key Constraint
  • Unique Constraint
To ensure that every order has a corresponding customer, you would apply a Foreign Key Constraint to the order table. This constraint establishes a link between the order table and the customer table, preventing orders without a matching customer.
Add your answer
Loading...

Leave a comment

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