Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Part I of the Semester 2 Final Exam covers Sections 8-9 of Database Programming with SQL.
Section 8
21.
Which statement about a column is NOT true?
Mark for Review (1) Points
You can increase the width of a CHAR column.
You can modify the data type of a column if the column contains non-null data. (*)
You can convert a CHAR data type column to the VARCHAR2 data type.
You can convert a DATE date type column to a VARCHAR2 column.
Correct
22.
You want to issue the following command on a database that includes your company's inventory information: ALTER TABLE products SET UNUSED COLUMN color;
What will be the result of issuing this command?
Mark for Review (1) Points
The column named COLOR in the table named PRODUCTS will be assigned default values.
The column named COLOR in the table named PRODUCTS will be created.
The column named COLOR in the table named PRODUCTS will be deleted.
The column named COLOR in the table named PRODUCTS will not be returned in subsequent reads of the table by Oracle, as is has been deleted logically. (*)
Correct
23.
You need to remove all the data in the SCHEDULE table, the structure of the table, and the indexes associated with the table. Which statement should you use?
The EMPLOYEE_ID column currently contains 500 employee identification numbers. Business requirements have changed and you need to allow users to include text characters in the identification values. Which statement should you use to change this column's data type?
Mark for Review (1) Points
ALTER TABLE employees MODIFY (employee_id VARCHAR2(9));
ALTER TABLE employees REPLACE (employee_id VARCHAR2(9));
ALTER employees TABLE MODIFY COLUMN (employee_id VARCHAR2(15));
You CANNOT modify the data type of the EMPLOYEE_ID column, as the table is not empty. (*)
Correct
Section 9
25.
When creating the EMPLOYEES table, which clause could you use to ensure that salary values are 1000.00 or more?
Niciun comentariu:
Trimiteți un comentariu