. relationships
are
transformed
into Check
Constraints
in the tables
created at
either end of
that
relationship.
True or
False?
True
False (*)
Incorrect. Refer to Section 11
Lesson 3.
2. The Oracle Database can implement a many-to-many
relationship. You simply create two foreign keys between
the two tables. True or False?
True
False (*)
Correct
3. When translating an arc relationship to a physical design,
you must turn the arc relationships into foreign keys.
Assuming you are implementing an Exclusive Design, you
must also create two Unique Key Constraints to ensure the
Arc is implemented correctly. True or False?
True
False (*)
Correct
4. Foreign keys must be null. True or False?
True
False (*)
Incorrect. Refer to Section 11
Lesson 1.
5. Identify all of the incorrect statements that complete this
sentence: A primary key is: (Choose three)
Column integrity
Referential integrity
Incorrect. Refer to Section 11
Lesson 1.
8. A foreign key cannot refer to a primary key in the same
table. True or False?
True
False (*)
Correct
9. Why would this table name NOT work in an Oracle
database? this_year_end+next_year
Table
Foreign Key
Constraint
Column (*)
Incorrect. Refer to Section 11
Lesson 2.
11.The
transformation
from an ER
diagram to a
physical design
involves
changing
terminology.
Primary
Unique
Identifiers in
the ER diagram
become
__________
and
relationships
become
____________.
Foreign keys, Primary keys
Primary keys, Foreign keys (*)
Foreign keys, mandatory business rules
Unique Keys, Primary keys
Correct
Section 12
(Answer all questions in this section)
12. The _______ clause can be added to a SELECT
statement to return a subset of the data.
ANYWHERE
WHICH
WHERE (*)
EVERY
Incorrect. Refer to Section 12
Lesson 1.
13. What command will return data from the database to
you?
FETCH
GET
SELECT (*)
RETURN
Correct.
14. What command can be used to create a new row in a
table in the database?
CREATE
NEW
ADD
INSERT (*)
Incorrect. Refer to Section 12
Lesson 1.
15. System Documentation is developed right at the end
once the system has gone live and users have been using
it for a little while. You are more likely to get it correct
that way. True or False?
True
False (*)
Correct.
16. Systems are always just rolled out as soon as the
programming phase is finished. No further work is
required once the development is finished. True or
False?
True
False (*)
Incorrect. Refer to Section 12
Lesson 4.
17. Once you have created a table, it is not possible to alter
the definition of it. If you need to add a new column
you must delete the table definition and create a new,
correct table. True or False?
True
False (*)
Correct.
18. The SQL statement ALTER TABLE EMPLOYEES
DELETE COLUMN SALARY is a valid statement.
True or False?
True
False (*)
Correct.
Section 15
(Answer all questions in this section)
19. Which statement best describes how arithmetic
expressions are handled?
21When
. listing
columns
in the
SELECT
list, what
should
you use
to
separate
the
columns?
Commas (*)
Semicolons
Dashes
Underscores
Correct.
22. In the default order of precedence, which operator would be
evaluated first?
Correct.
24. You query the database with this SQL statement:
SELECT *
FROM transaction
WHERE product_id = 4569;
Section 16
(Answer all questions in this section)
25. If you write queries using the BETWEEN operator, it does not
matter in what order you enter the values, i.e. BETWEEN low
value AND high value will give the same result as
BETWEEN high value and low value. True or False?
True
False (*)
Incorrect. See Section 16 Lesson 3.
26. The EMPLOYEES table includes these columns:
EMPLOYEE_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(15) NOT NULL
FIRST_NAME VARCHAR2(10) NOT NULL
HIRE_DATE DATE NOT NULL
You want to produce a report that provides the last names,
first names, and hire dates of those employees who were hired
between March 1, 2000, and August 30, 2000. Which
WHERE (*)
FROM
SELECT
IS
Incorrect. See Section 16 Lesson 1.
28. You need to display employees whose salary is in the range of
30000 and 50000. Which comparison operator should you
use?
IN
LIKE
BETWEEN...AND... (*)
IS NULL
Correct.
29. You need to display only unique combinations of the
LAST_NAME and MANAGER_ID columns in the
EMPLOYEES table. Which keyword should you include in
the SELECT clause?
ONLY
UNIQUEONE
DISTINCT (*)
DISTINCTROW
Correct.
30. What does the DISTINCT keyword do when it is used in a
SELECT clause?
uppercase. (*)
Column headings are displayed centered and in mixed
case.
Incorrect. See Section 16 Lesson
1.
32. Which comparison operator searches for a specified
character pattern?
IN
LIKE (*)
BETWEEN...AND...
IS NULL
Incorrect. See Section 16 Lesson
1.
33. Which of the following commands will display the last
name concatenated with the job ID from the employees
table, separated by a comma and space, and label the
resulting column "Employee and Title"?
Type
Length
EMPLOYEE_ID
NUMBER
22
FIRST_NAME
VARCHAR2
20
LAST_NAME
VARCHAR2
25
VARCHAR2
25
PHONE_NUMBER
VARCHAR2
20
SALARY
NUMBER
22
COMMISSION_PCT
NUMBER
22
MANAGER_ID
NUMBER
22
DEPARTMENT_ID
NUMBER
22
(1) Points
=
!=
IN (*)
BETWEEN..AND..
Incorrect. See Section 16 Lesson
2.
Section 17
(Answer all questions in this section)
37. Which statement about the logical operators is true?
True (*)
False
Correct.
41You need to
. change the
default sort
order of the
ORDER
BY clause
so that the
data is
displayed
in reverse
alphabetical
order.
Which
keyword
should you
include in
the
ORDER
BY clause?
DESC (*)
ASC
SORT
CHANGE
Incorrect. See Section 17 Lesson
1.
42. Which statement about the ORDER BY clause is true?
OR department_id = 45
OR department_id = 67;
Which operator is the equivalent of the OR conditions used
in this SELECT statement?
IN (*)
AND
LIKE
BETWEEN ... AND ...
Incorrect! See Section 17 Lesson
2.
45. Evaluate this SELECT statement:
SELECT last_name, first_name, department_id,
manager_id
FROM employees;