Académique Documents
Professionnel Documents
Culture Documents
1.Which of the following SQL statements will create a table called Birthdays with three columns for storing employee number, name and
date of birth?
CREATE TABLE Birthdays (Empno NUMBER, Empname CHAR(20), Birthdate DATE); (*)
Which statement should you use to decrease the width of the FIRST_NAME column to 10 if the column currently contains 1500 records,
but none are longer than 10 bytes or characters?
TIMESTAMP (*)
4.The BLOB datatype can max hold 128 Terabytes of data. True or False?
True (*)
1. To store time with fractions of seconds, which datatype should be used for a table column?
TIMESTAMP (*)
Four (*)
CLOB (*)
VARCHAR2 (*)
5. INTERVAL DAY TO SECOND stores a period of time in terms of days, hours, minutes, and seconds. True or False?
True (*)
6. A column's data type can always be changed from NUMBER to VARCHAR2 but not from VARCHAR2 to NUMBER, provided the table is
empty. True or False?
False (*)
9. 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?
10. When you use ALTER TABLE to add a column, the new column:
Becomes the last column in the table (*)
11. It is possible to create a table by using the CREATE TABLE command in conjunction with a subquery. True or False?
True (*)
12. I have a table named School_Friends in my schema. You want to build a table in your schema named School_Friends. This is
______________, because ____________________________________.
possible; my schema is separate from yours, and it is okay for us to have like-named tables in our separate schemas. (*)
14. You are creating the EMPLOYEES table. This table should contain the COMMISSION_PCT column and use a value of 10 percent if no
commission value is provided when a record is inserted. Which line should you include in the CREATE TABLE statement to accomplish this task?
4 (*)
The CHAR data type should be defined with a size that is not too large for the data it contains (or could contain) to save space in the database.
(*)
3. INTERVAL DAY TO SECOND stores a period of time in terms of days, hours, minutes, and seconds. True or False?
True (*)
4. You are designing a table for the Human Resources department. This table must include a column that contains each employee's hire date.
Which data type should you specify for this column?
DATE (*)
5. To store large amounts of text you should simply create a series of VARCHAR2 columns in a table. True or False?
False (*)
6. Which SQL statement below will correctly create the EMP table based on the structure of the EMPLOYEES table? Include only the
EMPLOYEE_ID, FIRST_NAME, LAST_NAME, SALARY, and DEPARTMENT_ID columns.
8. I have a table named School_Friends in my schema. You want to build a table in your schema named School_Friends. This is
______________, because ____________________________________.
possible; my schema is separate from yours, and it is okay for us to have like-named tables in our separate schemas. (*)
Creates a table named student_table with four columns: id, lname, fname, lunch_num (*)
11. A column's data type can always be changed from NUMBER to VARCHAR2 but not from VARCHAR2 to NUMBER, provided the table is
empty. True or False?
False (*)
12. 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?
The column named COLOR in the table named PRODUCTS will not be returned in subsequent reads of the table by Oracle, as it has been
deleted logically. (*)
13. The previous administrator created a table named CONTACTS, which contains outdated data. You want to remove the table and its data from
the database. Which statement should you issue?
DROP TABLE (*)
14. The FLASHBACK QUERY statement can restore data back to a point in time before the last COMMIT. True or False?
False (*)
You can issue this statement to retain the structure of the employees table. (*)
1. You need to change the name of the EMPLOYEES table to the EMP table. Which statement should you use?
The TEAMS table is currently empty. You need to allow users to include text characters in the manager identification values. Which statement should
you use to implement this?
Which statement should you use to increase the LAST_NAME column length to 35 if the column currently contains 200 records?
You can modify the data type of a column if the column contains non-null data. (*)
6. Once they are created, external tables are accessed with normal SQL statements. (True or False?)
True (*)
4 (*)
NUMBER_1$ (*)
9. I have a table named School_Friends in my schema. You want to build a table in your schema named School_Friends. This is
______________, because ____________________________________.
possible; my schema is separate from yours, and it is okay for us to have like-named tables in our separate schemas. (*)
10. DCL, which is the acronym for Data Control Language, allows:
12. A column that will be used to store binary data up to 4 Gigabytes in size should be defined as which datatype?
BLOB (*)
The CHAR data type should be defined with a size that is not too large for the data it contains (or could contain) to save space in the database.
(*)
15. Which data types stores variable-length character data? Select two.
VARCHAR2 (*)
CLOB (*)
1. INTERVAL DAY TO SECOND stores a period of time in terms of days, hours, minutes, and seconds. True or False?
True (*)
2. You are designing a table for the Human Resources department. This table must include a column that contains each employee's hire date.
Which data type should you specify for this column?
DATE (*)
3. To store large amounts of text you should simply create a series of VARCHAR2 columns in a table. True or False?
False (*)
4. A column that will be used to store binary data up to 4 Gigabytes in size should be defined as which datatype?
BLOB (*)
Today's date should be used if no value is provided for the sale date. (*)
Both changes can be accomplished with one ALTER TABLE statement. (*)
7. Which command could you use to quickly remove all data from the rows in a table without deleting the table itself?
TRUNCATE TABLE (*)
8. You need to remove all the rows from the SALES_HIST table. You want to release the storage space, but do not want to remove the table
structure. Which statement should you use?
9. The FLASHBACK QUERY statement can restore data back to a point in time before the last COMMIT. True or False?
False (*)
10. 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?
You are a member of the SYSDBA role, but are logged in under your own schema. You issue this CREATE TABLE statement. Which statement is
true?
True (*)
13. I have a table named School_Friends in my schema. You want to build a table in your schema named School_Friends. This is
______________, because ____________________________________.
possible; my schema is separate from yours, and it is okay for us to have like-named tables in our separate schemas. (*)
What will be the result in the hire_date column following this insert statement:
Statement will work and the hire_date column will have the value of the date when the statement was run. (*)
15. Once they are created, external tables are accessed with normal SQL statements. (True or False?)
True (*)
1. It is possible to create a table by using the CREATE TABLE command in conjunction with a subquery. True or False?
True (*)
2. You want to create a database table that will contain information regarding products that your company released during 2001. Which name can
you assign to the table that you create?
PRODUCTS_2001 (*)
3. You want to create a table named TRAVEL that is a child of the EMPLOYEES table. Which of the following statements should you
issue?
Data stored in the column will be returned in the database's local time zone. (*)
7. A table has a column: RESPONSE_TIME. This is used to store the difference between the time the problem was reported and the time the
problem was resolved. Data in the RESPONSE_TIME column needs to be stored in days, hours, minutes and seconds. Which data type should you
use?
8. You are designing a table for the Sales department. You need to include a column that contains each sales total. Which data type should you
specify for this column?
NUMBER (*)
9. To store time with fractions of seconds, which datatype should be used for a table column?
TIMESTAMP (*)
Today's date should be used if no value is provided for the sale date. (*)
12. The data type of a column can never be changed once it has been created. True or False?
False (*)
13. When you use ALTER TABLE to add a column, the new column:
14. 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?
The column named COLOR in the table named PRODUCTS will not be returned in subsequent reads of the table by Oracle, as it has been
deleted logically. (*)
The TEAMS table is currently empty. You need to allow users to include text characters in the manager identification values. Which statement should
you use to implement this?
You should use it when you need a quick way of dropping a column. (*)
3. Which command could you use to quickly remove all data from the rows in a table without deleting the table itself?
Prevents data in the FAX column from being displayed, by performing a logical drop of the column (*)
An external table with the data stored in a file outside the database. (*)
7. Which SQL statement below will correctly create the EMP table based on the structure of the EMPLOYEES table? Include only the
EMPLOYEE_ID, FIRST_NAME, LAST_NAME, SALARY, and DEPARTMENT_ID columns.
8. I have a table named School_Friends in my schema. You want to build a table in your schema named School_Friends. This is
______________, because ____________________________________.
possible; my schema is separate from yours, and it is okay for us to have like-named tables in our separate schemas. (*)
9. When creating a new table, which of the following naming rules apply. (Choose three)
11. INTERVAL DAY TO SECOND stores a period of time in terms of days, hours, minutes, and seconds. True or False?
True (*)
13. A table has a column: RESPONSE_TIME. This is used to store the difference between the time the problem was reported and the time the
problem was resolved. Data in the RESPONSE_TIME column needs to be stored in days, hours, minutes and seconds. Which data type should you
use?
14. You are designing a table for the Sales department. You need to include a column that contains each sales total. Which data type should you
specify for this column?
NUMBER (*)
15. Which data types stores variable-length character data? Select two.
CLOB (*)
VARCHAR2 (*)
1. You need to store the SEASONAL data in months and years. Which data type should you use?
Today's date should be used if no value is provided for the sale date. (*)
The CHAR data type should be defined with a size that is not too large for the data it contains (or could contain) to save space in the database.
(*)
5. You are designing a table for the Sales department. You need to include a column that contains each sales total. Which data type should you
specify for this column?
NUMBER (*)
The TEAMS table is currently empty. You need to allow users to include text characters in the manager identification values. Which statement should
you use to implement this?
When a character column contains data, you can decrease the width of the column if the
existing data does not violate the new size. (*)
9. The FLASHBACK QUERY statement can restore data back to a point in time before the last COMMIT. True or False?
False (*)
10. A column's data type can always be changed from NUMBER to VARCHAR2 but not from VARCHAR2 to NUMBER, provided the table is
empty. True or False?
False (*)
11. Once they are created, external tables are accessed with normal SQL statements. (True or False?)
True (*)
Creates a table named student_table with four columns: id, lname, fname, lunch_num (*)
If no schema is explicitly included in a CREATE TABLE statement, the table is created in the current user's schema. (*)
14. Which SQL statement below will correctly create the EMP table based on the structure of the EMPLOYEES table? Include only the
EMPLOYEE_ID, FIRST_NAME, LAST_NAME, SALARY, and DEPARTMENT_ID columns.
4 (*)