Home / CSE / Database System 2 - CS :: Discussion

Discussion :: Database System 2 - CS

  1. What SQL command will allow you to change the table STUDENT to add the constraint named GradeCheck that states that the values of the Grade column must be greater than 0?

  2. A.

     ALTER TABLE STUDENT ALTER CONSTRAINT GradeCheck (Grade > 0);

    B.

     ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck (Grade > 0);

    C.

     ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0);

    D.

     None of the above is correct.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Explanation Not Provided


Be The First To Comment