logo

CuriousTab

CuriousTab

Discussion


Home Database Database Redesign Comments

  • 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?


  • Options
  • 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.

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


  • Database Redesign problems


    Search Results


    • 1. Which of the following modifications may not succeed?

    • Options
    • A. Changing a column data type from char to date
    • B. Changing a column data type from numeric to char
    • C. Both of the above actions should succeed.
    • D. Neither of the above actions will succeed.
    • Discuss
    • 2. Because of the importance of making data model changes correctly, many professionals are ________ about using an automated process for database redesign.

    • Options
    • A. optimistic
    • B. skeptical
    • C. ambivalent
    • D. None of the above is correct.
    • Discuss
    • 3. The process of reading a database schema and producing a data model from that schema is known as:

    • Options
    • A. data modeling.
    • B. database design.
    • C. reverse engineering.
    • D. None of the above is correct.
    • Discuss
    • 4. Which is not true of a correlated subquery?

    • Options
    • A. EXISTS/NOT EXISTS is a form of a correlated subquery.
    • B. The processing of the SELECT statements is nested.
    • C. They can be used to verify functional dependencies.
    • D. They are very similar to a regular subquery.
    • Discuss
    • 5. Changing cardinalities in a database is:

    • Options
    • A. a common database design task.
    • B. a rare database design task, but does occur.
    • C. a database design task that never occurs.
    • D. is impossible to do, so a new database must be constructed and the data moved into it.
    • Discuss
    • 6. Database redesign is not terribly difficult if the:

    • Options
    • A. database is structured.
    • B. database is well-designed.
    • C. database has no data.
    • D. database is relatively small.
    • Discuss
    • 7. After a table has been created, its structure can be modified using the SQL command:

    • Options
    • A. UPDATE TABLE [TableName].
    • B. MODIFY TABLE [TableName].
    • C. ALTER TABLE [TableName].
    • D. CHANGE TABLE [TableName].
    • Discuss
    • 8. What Oracle backup and recover file contains user and system data?

    • Options
    • A. Control file
    • B. Datafile
    • C. OnLine ReDo file
    • D. Offline ReDo file
    • Discuss
    • 9. Which statement about sequences is not true?

    • Options
    • A. A sequence is an object that generates a sequential series of unique numbers.
    • B. Sequences are most often used to provide values for surrogate keys.
    • C. NextVal and CurrVal are both sequence methods.
    • D. Sequences guarantee valid surrogate key values.
    • Discuss
    • 10. Of the three ways to create an Oracle database, which one is the easiest and most recommended?

    • Options
    • A. Using the Oracle Database Configuration Assistant.
    • B. Using the Oracle-supplied database creation procedures.
    • C. Using the SQL CREATE DATABASE command.
    • D. None of the above is correct.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment