Scenario: An application requires that a certain column in a DB2 table always contains a valid date value. Which constraint should be applied to enforce this rule?

  • Check Constraint
  • Foreign Key Constraint
  • Primary Key Constraint
  • Unique Constraint
A Check Constraint allows the specification of a condition that each row in the table must satisfy. In this scenario, a Check Constraint can be used to ensure that the column always contains valid date values by defining a condition to validate dates. 
Add your answer
Loading...

Leave a comment

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