Scenario: You are working on a project where data integrity is crucial. A new table is being designed to store employee information. Which constraint would you use to ensure that the "EmployeeID" column in this table always contains unique values?

  • Check Constraint
  • Foreign Key Constraint
  • Primary Key Constraint
  • Unique Constraint
A Unique Constraint ensures that the values in the specified column or set of columns are unique across all rows in the table. It is commonly used to enforce uniqueness but does not necessarily imply a primary key or foreign key relationship.
Add your answer
Loading...

Leave a comment

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