Vidyalelo
Database · Q16

Database Redesign

Programming · Database · question 16

Q16

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?

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);
Answer
D.
None of the above is correct.

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board