O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Final Study

Brad Gustafson 103 perguntas

Fazer o quiz

Perguntas do quiz (103)

  1. 1In the initial creation of a table, if a unique constraint is included for a composite column that requires the combination of entries in the specified columns to be unique. Which of the following statement is correct?
    1. AThe constraint can be created only with the ALTER TABLE command.
    2. BThe constraint can be created only with the table-level approach.
    3. CThe constraint can be created only with the column-level approach.
    4. DThe constraint can be created only with the ALTER TABLE... MODIFY command.
  2. 2Which type of constraint should you use on a column to allow entering only values above 100?
    1. APRIMARY KEY
    2. BUNIQUE
    3. CCHECK
    4. DNOT NULL
  3. 3Which of the following commands can be used to enable a disabled constraint?
    1. AALTER TABLE... MODIFY
    2. BALTER TABLE... ADD
    3. CALTER TABLE...DISABLE
    4. DALTER TABLE... ENABLE
  4. 4Which of the following keywords allows the user to delete a record from a table, even if row in another table reference the record through a FOREIGN KEY constraint?
    1. ACASCADE
    2. BCASCADE ON DELETE
    3. CDELETE ON CASCADE
    4. DDROP
    5. EON DELETE CASCADE
  5. 5Which of the following data dictionary objects should be used to view information about the constraint in a database?
    1. AUSER... TABLES
    2. BUSER... RULES
    3. CUSER... COLUMNS
    4. DUSER... CONSTRAINTS
    5. ENone of the above objects should be used.
  6. 6Which of the following types of constraints can't be created at the table level?
    1. ANOT NULL
    2. BPRIMARY KEY
    3. CCHECK
    4. DFOREIGN KEY
    5. ENone of the constraint can be created at the table level.
  7. 7Suppose you create a PRIMARY KEY constraint at the same time you created a table and later decide to name the constraint. Which of the following commands can you use to change the constraint's name?
    1. AALTER TABLE...MODIFY
    2. BALTER TABLE...ADD
    3. CALTER TABLE... DISABLE
    4. DNone of the above commands can be used.
  8. 8You're creating a new table consisting of three columns: Col1, Col2, and Col3. Col1 should be the primary key and can't have any NULL values, and each entry should be unique. Col3 must not contain any NULL values either. How many constraints do you have to create.
    1. A1
    2. B2
    3. C3
    4. D4
  9. 9Which of the following types of restrictions can be viewed with the DESCRIBE command?
    1. ANOT NULL
    2. BFOREIGN KEY
    3. CUNIQUE
    4. DCHECK
  10. 10Which of the following is the valid syntax for adding a PRIMARY KEY constraint to an existing table?
    1. AALTER TABLE tablename ADD CONSTRAINT PRIMARY KEY (columnname);
    2. BALTER TABLE tablename ADD CONSTRAINT (columname) PRIMARY KEY constraintname;
    3. CALTER TABLE tablename ADD [CONSTRAINT constraintname] PRIMARY KEY;
    4. DNone of the above is valid syntax.

Informações

Descrição
Some Questions will be used from Midterm and other homework for the final
Idioma
English
Visualizações
2
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?