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.
Answer: Option C
Which of the following SQL statements are helpful in database redesign?
A. Correlated subqueries only
B. EXISTS/NOT EXISTS expressions only
C. Both of the above are helpful
D. None of the above are helpful
What SQL command can be used to delete columns from a table?
A. MODIFY TABLE TableName DROP COLUMN ColumnName
B. MODIFY TABLE TableName DROP ColumnName
C. ALTER TABLE TableName DROP COLUMN ColumnName
D. ALTER TABLE TableName DROP ColumnName
Database redesign is not terribly difficult if the:
A. database is structured.
B. database is well-designed.
C. database has no data.
D. database is relatively small.
Which SQL-92 standard SQL command can be used to change a table name?
A. RENAME TABLE
B. CHANGE TABLE
C. ALTER TABLE
D. None of the above is correct
Join The Discussion