Scenario: In a university database, each student has a unique ID. What type of constraint would you use to enforce this uniqueness?

  • Check Constraint
  • Foreign Key Constraint
  • Primary Key Constraint
  • Unique Constraint
To enforce the uniqueness of each student's ID in a university database, you would use a Primary Key Constraint. This constraint ensures that each value in the specified column is unique, and it is typically applied to the student ID column.
Add your answer
Loading...

Leave a comment

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