Beruflich Dokumente
Kultur Dokumente
Mark for
Review
(1) Points
True
False (*)
Correct
2. Entity integrity refers to:
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True
False (*)
Incorrect. Refer to Section 11 Lesson 1.
Mark for
Review
(1) Points
True
False (*)
Correct
5. 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.
Mark for
Review
(1) Points
True (*)
False
Correct
6. 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
7. 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
8. To resolve a many to many relationship in a physical model you create a/an
___________________?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Columns
Tables
Unique Constraints (*)
Primary Key Constraints
Correct
Section 11
(Answer all questions in this section)
11. In a physical data model, a relationship is represented as a combination of:
(Choose Two)
Mark for
Review
(1) Points
Section 12
(Answer all questions in this section)
12. What command will return data from the database to you?
Mark for
Review
(1) Points
FETCH
GET
SELECT (*)
RETURN
Correct.
13. The DESCRIBE command returns all rows from a table. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct.
14. 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.
15. During which phases of the System Development Life Cycle would you test
the system before rolling it out to the users?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True
False (*)
Correct.
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?
Mark for
Review
(1) Points
True
False (*)
Correct.
18. 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
Review
(1) Points
0
3
1 (*)
2
Correct.
Section 15
(Answer all questions in this section)
19. You want to create a list of all albums that have been produced by the
company. The list should include the title of the album, the artist's name,
and the date the album was released. The ALBUMS table includes the
following columns:
Mark for
Review
(1) Points
SELECT *
FROM albums;
(*)
SELECT alb_title, alb_artist, alb_dates
FROM album;
SELECT alb_title, alb_artist, alb_dates
FROM albums;
SELECT alb_title; alb_artist; alb_date
FROM albums;
Correct.
20. Which statement best describes how arithmetic expressions are handled?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Which SQL SELECT statement capabilities are achieved when this statement
is executed?
Selection only
Projection only
Selection and projection only (*)
Projection, selection and joining
Correct.
Mark for
Review
(1) Points
SELECT (*)
FROM
WHERE
Any of the above options; you can list columns wherever you want to in
a SELECT statement.
Correct.
Section 16
(Answer all questions in this section)
25. You want to retrieve a list of customers whose last names begin with the
letters 'Fr' . Which keyword should you include in the WHERE clause of your
SELECT statement to achieve the desired result?
Mark for
Review
(1) Points
AND
IN
BETWEEN
LIKE (*)
Correct.
26. Which SELECT statement will display both unique and non-unique
combinations of the MANAGER_ID and DEPARTMENT_ID values from the
EMPLOYEES table?
Mark for
Review
(1) Points
Mark for
PLAYER_ID NUMBER(9)
LAST_NAME VARCHAR2(20)
FIRST_NAME VARCHAR2 (20)
TEAM_ID NUMBER (4)
MANAGER_ID NUMBER (9)
Review
(1) Points
Mark for
SELECT *
FROM employees
WHERE department_id IN(10, 20, 30)
AND salary > 20000;
Review
(1) Points
Mark for
Review
(1) Points
#
+'
!= (*)
~
Correct.
30. Which comparison operator searches for a specified character pattern?
Mark for
Review
(1) Points
IN
LIKE (*)
BETWEEN...AND...
IS NULL
Correct.
Section 16
(Answer all questions in this section)
31. Which clause would you include in a SELECT statement to restrict the data
returned to only the employees in department 10?
Mark for
Review
(1) Points
WHERE (*)
FROM
SELECT
IS
Correct.
32. The Concatenation Operator does which of the following?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
10
34. What does the DISTINCT keyword do when it is used in a SELECT clause?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
You are writing a SELECT statement to retrieve the names of employees that
have an email address.
SELECT last_name||', '||first_name "Employee Name"
FROM employees;
Which WHERE clause should you use to complete this statement?
Mark for
Review
(1) Points
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 statements can you issue to accomplish this task?
11
Section 17
(Answer all questions in this section)
37. Which clause would you include in a SELECT statement to sort the rows
returned by the LAST_NAME column?
Mark for
Review
(1) Points
ORDER BY (*)
WHERE
FROM
HAVING
Correct.
38. Which of the following best describes the meaning of the LIKE operator?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
12
Mark for
Review
(1) Points
OR (*)
AND
NOT
BOTH
Correct.
Section 17
(Answer all questions in this section)
41. From left to right, what is the correct order of Precedence?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
"=)"
"+<"
">="
"<=" (*)
Correct.
43. The PLAYERS table contains these columns:
Mark for
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
Review
(1) Points
13
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)
You must display the player name, team id, and salary for players whose
salary is in the range from 25000 through 100000 and whose team id is in
the range of 1200 through 1500. The results must be sorted by team id from
lowest to highest and then further sorted by salary from highest to lowest.
Which statement should you use to display the desired result?
Mark for
Review
(1) Points
1.
SELECT DISTINCT department_id DEPT, last_name, first_name
FROM employees
ORDER BY department_id;
2.
SELECT department_id DEPT, last_name, first_name
FROM employees
ORDER BY DEPT;
How will the results differ?
14
Mark for
Review
(1) Points
This statement fails when executed. Which change will correct the problem?
Mark for
Review
(1) Points
Mark for
15
Review
(1) Points
Employee
14837 - Smith
Mark for
Review
(1) Points
Correct.
49. Evaluate this SELECT statement:
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.
16
Correct.
50. 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.)
17
Mark for
Review
(1) Points