Database Redesign

Q1: 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);

D None of the above is correct.

ANS:C - ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0);

No answer description is available



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.