adplus-dvertising
frame-decoration

Question

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.

Posted under SQL DBMS

Answer: (c).ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. 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?

Similar Questions

Discover Related MCQs

Q. Which is not true of a correlated subquery?

Q. What is the full form of SQL?

Q. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?

Q. Which operator performs pattern matching?

Q. What operator tests column for the absence of data?

Q. Which of the SQL statements is correct?

Q. The FROM SQL clause is used to...

Q. Which SQL keyword is used to retrieve only unique values?

Q. Which SQL keyword is used to retrieve a maximum value?

Q. What is a view?

Q. Which of the following SQL commands is used to retrieve data?

Q. Which of the following is a SQL aggregate function?

Q. Which SQL statement is used to update data in a database?

Q. Which SQL statement is used to delete data FROM a database?

Q. Which SQL keyword is used to sort the result-set?

Q. The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;

Q. Which of the following group functions ignore NULL values?

Q. Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints

Q. The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints

Q. The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;