Difficulty: Easy
Correct Answer: ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0);
Explanation:
Introduction / Context:CHECK constraints enforce row-level data rules directly in the database. Adding a named constraint improves maintainability and allows targeted enable/disable and error messages. The task is to identify the correct SQL syntax for adding such a constraint.
Given Data / Assumptions:
Concept / Approach:
Most SQL dialects support the pattern: ALTER TABLE
Discussion & Comments