Escolar Documentos
Profissional Documentos
Cultura Documentos
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Columns
Tables
Unique Constraints (*)
Primary Key Constraints
Correct
3. 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
Mark for
Review
(1) Points
Supertype
Intersection Table
Intersection Entity (*)
Subtype
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. The explanation below is a User Defined integrity rule and must, therefore,
be manually coded; the Database cannot enforce this rule automatically.
True or False?
A primary key must be unique, and no part of the primary key can be null.
Mark for
Review
(1) Points
True
False (*)
Correct
8. A foreign key cannot refer to a primary key in the same table. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
9. A table must have a primary key. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct
10. Entity integrity refers to:
Mark for
Review
(1) Points
Mark for
Review
(1) Points
True
False (*)
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. 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
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.
15. 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.
16. 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.
17. The DESCRIBE command returns all rows from a table. True or False?
Mark for
Review
(1) Points
True
False (*)
Correct.
18. What command will return data from the database to you?
Mark for
Review
(1) Points
FETCH
GET
SELECT (*)
RETURN
Correct.
Section 15
(Answer all questions in this section)
19. You query the database with this SQL statement:
SELECT * FROM students;
Why would you use this statement?
Mark for
Review
(1) Points
To insert data
To view data (*)
To display the table structure
To delete data
Correct.
20. Evaluate this SELECT statement:
SELECT (salary * raise_percent) raise
FROM employees;
If the RAISE_PERCENT column only contains null values, what will the
statement return?
Only zeroes
Only null values (*)
A null value or a zero depending on the value of the SALARY column
A null value or a numeric value depending on the value of the SALARY
column
Mark for
Review
(1) Points
Correct.
Section 15
(Answer all questions in this section)
21. In a SQL statement, which clause specifies one or more columns to be
returned by the query?
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.
22. The EMPLOYEES table contains these columns:
SALARY NUMBER(7,2)
BONUS NUMBER(7,2)
COMMISSION_PCT NUMBER(2,2)
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Selection only
Projection only
Selection and projection only (*)
Projection, selection and joining
Incorrect. See Section 15 Lesson 1.
Section 16
(Answer all questions in this section)
25. Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id IN(10, 20, 30)
AND salary > 20000;
Mark for
Review
(1) Points
Mark for
Review
(1) Points
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM
employees;
SELECT last_name||', '|| job_id "Employee and Title" FROM employees;
(*)
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM emp;
Mark for
Review
(1) Points
Mark for
Review
(1) Points
% (*)
~
#
*
Correct.
29. The EMPLOYEES table contains these columns:
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
EMAIL VARCHAR2(50)
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
30. 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?
Mark for
Review
(1) Points
True
False (*)
Correct.
Section 16
(Answer all questions in this section)
31. Which comparison operator searches for a specified character pattern?
Mark for
Review
(1) Points
IN
LIKE (*)
BETWEEN...AND...
IS NULL
Correct.
32. 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.
33. 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?
Mark for
Review
(1) Points
ONLY
UNIQUEONE
DISTINCT (*)
DISTINCTROW
Correct.
34. When using the LIKE condition to search for _ symbols, which character can
you use as the default ESCAPE option?
Mark for
Review
(1) Points
%
^
&
\ (*)
Correct.
35. You need to display employees whose salary is in the range of 10000
through 25000 for employees in department 50 . What does the WHERE
clause look like?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
_
% (*)
#
&
Correct.
Section 17
(Answer all questions in this section)
37. Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m
ORDER BY e.last_name, e.first_name
WHERE e.employee_id = m.manager_id;
This statement fails when executed. Which change will correct the problem?
Mark for
Review
(1) Points
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?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Correct.
43. Which logical operator returns TRUE if either condition is true?
Mark for
Review
(1) Points
OR (*)
AND
NOT
BOTH
Correct.
44. Which of the following are TRUE regarding the logical AND operator?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
ORDER BY (*)
WHERE
FROM
HAVING
Correct.
46. Evaluate this SELECT statement:
SELECT last_name, first_name, email
FROM employees
ORDER BY email;
If the EMAIL column contains null values, which statement is true?
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Mark for
Review
(1) Points
Correct.
50. You need to create a report to display all employees that were hired on or
before January 1, 1996. The data should display in this format:
Employee
14837 - Smith
Correct.
Mark for
Review
(1) Points