Professional Documents
Culture Documents
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 11
(Answer all questions in this section)
1. An "Arc Implementation" can be done just like any other Relationship - you
simply add the required Foreign Keys. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
2. In a physical data model, a relationship is represented as a combination of:
(Choose Two)
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Table
Foreign Key
Constraint
Column (*)
Correct
4. The transformation from an ER diagram to a physical design involves
changing terminology. Secondary Unique Identifiers become
Mark for
Review
(1) Points
Columns
Tables
Unique Constraints (*)
Primary Key Constraints
Correct
5. The text below is an example of what constraint type?
The value in the manager_id column of the EMPLOYEES table must match a
value in the employee_id column in the EMPLOYEES table.
Mark for
Review
(1) Points
Entity integrity
User-defined integrity
Column integrity
Referential integrity (*)
Correct
6. Foreign keys must be null. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
7. The explanation below is a column integrity constraint. True or False?
A column must contain only values consistent with the defined data format
of the column.
True (*)
False
Correct
Mark for
Review
(1) Points
8. If a primary key is a set of columns, then one column must be null. True or
False?
Mark for
Review
(1) Points
True
False (*)
Correct
9. The text below is an example of what constraint type?
If the number of BOOKS lent to a BORROWER in the LIBRARY exceeds 5,
then we must send him a letter requesting the return of the BOOKS; this will
require extra programming to enforce.
Mark for
Review
(1) Points
Entity integrity
User-defined integrity (*)
Column integrity
Referential integrity
Correct
10. One-to-One relationships are transformed into Check Constraints in the
tables created at either end of that relationship. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
11. In a conceptual
model, many-tomany
relationships are
resolved via a
structure called
a/an:
________________
Supertype
Intersection Table
Intersection Entity (*)
Subtype
Correct
Section 12
(Answer all questions in this section)
12. 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?
Mark for
Review
(1) Points
True
False (*)
Correct.
13. 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?
Mark for
Review
(1) Points
True
False (*)
Correct.
14. The f_customers table contains the following data:
Mark for
ID Name
Address
City
State Zip
Cole Bee
Orlando
FL
32838
Zoe Twee
Boston
MA
02116
Sandra Lee
22 Main Street
Tampa
FL
32444
0
3
1 (*)
2
Correct.
Review
(1) Points
Mark for
Review
(1) Points
True
False (*)
Correct.
16. The _______ clause can be added to a SELECT statement to
return a subset of the data.
Mark for
Review
(1) Points
ANYWHERE
WHICH
WHERE (*)
EVERY
Correct.
17. The DESCRIBE command returns all rows from a table. True
or False?
Mark for
Review
(1) Points
True
False (*)
Correct.
18. What command can be used to create a new row in a table in
the database?
Mark for
Review
(1) Points
CREATE
NEW
ADD
INSERT (*)
Correct.
Section 15
(Answer all questions in this section)
19. In a SELECT clause, what is the result of 2 + 3 * 2?
Mark for
Review
(1) Points
6
8 (*)
10
13
Correct.
20. If a SQL statement returns data from two or more tables,
which SQL capability is being used?
Mark for
Review
(1) Points
Selection
Projection
Joining (*)
Insertion
Correct.
Section 15
(Answer all questions in this section)
21. You query the database with this SQL statement:
SELECT * FROM students;
Why would you use this statement?
To insert data
To view data (*)
To display the table structure
To delete data
Correct.
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Section 16
(Answer all questions in this section)
25. The EMPLOYEES table contains these columns:
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
EMAIL VARCHAR2(50)
Mark for
Review
(1) Points
Mark for
Review
(1) Points
(*)
SELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN '30-AUG-2000' AND '01-MAR-2000';
SELECT last_name, first_name, hire_date
FROM employees
GROUP BY hire_date >= '01-MAR-2000' and hire_date <= '30- AUG2000';
SELECT last_name, first_name, hire_date
FROM employees
AND hire_date >= '01-MAR-2000' and hire_date <= '30-AUG-2000';
Correct.
27. You need write a SELECT statement that should only return rows that
contain 34, 46, or 48 for the DEPARTMENT_ID column. Which operator
should you use in the WHERE clause to compare the DEPARTMENT_ID
column to this specific list of values?
Mark for
Review
(1) Points
=
!=
IN (*)
BETWEEN..AND..
Correct.
28. If the EMPLOYEES table has the following columns, and you want to write a
SELECT statement to return the employee last name and department
number for employee number 176, which of the following SQL statements
should you use?
Name
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
Mark for
Review
(1) Points
Mark for
Review
(1) Points
AND
IN
BETWEEN
LIKE (*)
Correct.
30. The PLAYERS table contains these columns:
PLAYER_ID NUMBER(9)
LAST_NAME VARCHAR2(20)
FIRST_NAME VARCHAR2 (20)
TEAM_ID NUMBER (4)
MANAGER_ID NUMBER (9)
POSITION_ID NUMBER (4)
Mark for
Review
(1) Points
Which SELECT statement should you use if you want to display unique
combinations of the TEAM_ID and MANAGER_ID columns?
Mark for
Review
(1) Points
IN
LIKE
BETWEEN...AND... (*)
IS NULL
Correct.
32. Which of the following elements cannot be included in a WHERE clause?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
IN
LIKE (*)
ALMOST
SIMILAR
Correct.
34. You need to display employees with salaries that are at least 30000 or
higher. Which comparison operator should you use?
Mark for
Review
(1) Points
>
"=>"
>= (*)
!=
Correct.
35. You need to combine the FIRST_NAME and LAST_NAME columns in the
EMPLOYEES table and display the columns as a combined character string.
Which operator should you use?
Mark for
Review
(1) Points
+
|
|| (*)
AND
Correct.
36. Which comparison operator searches for a specified character pattern?
Mark for
Review
(1) Points
IN
LIKE (*)
BETWEEN...AND...
IS NULL
Correct.
Section 17
(Answer all questions in this section)
37. You query the database with this SQL statement:
SELECT price
FROM products
WHERE price IN(1, 25, 50, 250)
AND (price BETWEEN 25 AND 40 OR price > 50);
Which two values could the statement return? (Choose two.)
Mark for
Review
(1) Points
25 (*)
10
250 (*)
Correct.
38. Evaluate this SELECT statement:
SELECT employee_id, last_name, first_name, salary 'Yearly Salary'
FROM employees
WHERE salary IS NOT NULL
ORDER BY last_name, 3;
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
The database will display the rows in whatever order it finds it in the
database, so no particular order. (*)
The results will be sorted ascending by the LAST_NAME column only.
The results will be sorted ascending by LAST_NAME and FIRST_NAME
only.
The results will be sorted ascending by LAST_NAME, FIRST_NAME, and
SALARY.
Correct.
Section 17
(Answer all questions in this section)
41. Evaluate this SELECT statement:
SELECT first_name, last_name, email
FROM employees
ORDER BY last_name;
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
This statement fails when executed. Which change will correct the problem?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
ORDER BY (*)
WHERE
FROM
HAVING
Correct.
46. Which logical operator returns TRUE if either condition is true?
Mark for
Review
(1) Points
OR (*)
AND
NOT
BOTH
Correct.
47. You 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?
Mark for
Review
(1) Points
DESC (*)
ASC
SORT
CHANGE
Correct.
48. Which of the following best describes the meaning of the LIKE operator?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
"=)"
"+<"
">="
"<=" (*)
Correct.
50. Which statement about the default sort order is true?
Mark for
Review
(1) Points