Professional Documents
Culture Documents
com
1. The explanation below is a column integrity constraint: A column must contain only values
consistent with the defined data format of the column. True or False?
True
False
2. A table must have at least one candidate key, as well as its primary key. True or
False?
True
False
3. A table must have a primary key. True or False? Mark for Review
(1) Points
True
False
4. A foreign key can not refer to a primary key in the same table. True or False?
Mark for Review
(1) Points
True
False
Section 12 Lesson 2(Answer all questions in this section) 5. In a
physical data model, a relationship is represented as a combination of: (Choose Two)
(Choose all correct answers)
Column
Foreign Key
Object names must not start with a number. They must begin with a letter
True
False
Section 12 Lesson 3(Answer all questions in this section) 8. The Oracle
Database can implement a many to many relationship. You simple create two foreign keys
between the two tables. True or False? Mark for Review
(1) Points
True
False
9. What do you create when you transform a many to many relationship from your ER
diagram into a physical design?
Unique key constraints
Intersection entity
Intersection table
False
Section 12 Lesson 4(Answer all questions in this section) 11. 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
This watermark does not appear in the registered version - http://www.clicktoconvert.com
False
Section 13 Lesson 1(Answer all questions in this section) 12. What
command can used to create a new row in a table in the database?
CREATE
NEW
ADD
INSERT
13. What command will return data from the database to you?
FETCH
GET
SELECT
RETURN
Section 16 Lesson 1(Answer all questions in this section) 14. Which
SQL keyword specifies that an alias will be substituted for a column name in the output of a SQL
query?
AS
OR
AND
SUBSTITUTE
15. In the default order of precedence, which operator would be evaluated first?
Subtractions
Multiplications
Additions
Divisions
This watermark does not appear in the registered version - http://www.clicktoconvert.com
16. Which statement best describes how arithmetic expressions are handled?
Multiplication and substraction operations are handled before any other operations.
Multiplication and addition operations are handled before subtraction and division
operations.
Division and multiplication operations are handled before subtraction and addition
operations.
17. You query the database with this SQL statement:
SELECT * FROM students;
To insert data
To view data
To delete data
18. The EMPLOYEES table contains these columns:
SALARY NUMBER(7,2)
BONUS NUMBER(7,2)
COMMISSION_PCT NUMBER(2,2)
All three columns contain values greater than zero. There is one row of data in the table and the
values are as follows:
1.
SELECT salary + bonus + commission_pct * salary - bonus AS income
FROM employees;
2.
SELECT (salary + bonus ) + commission_pct * (salary - bonus) income
FROM employees;
This watermark does not appear in the registered version - http://www.clicktoconvert.com
DESCRIBE
FROM
WHERE
20. Evaluate this SELECT statement:
If the RAISE_PERCENT column only contains null values, what will the statement return?
Only zeroes
A null value or a numeric value depending on the value of the SALARY column
Section 16 Lesson 3(Answer all questions in this section) 21. There is only one kind of
software used by all computers. True or Fale?
True
False
This watermark does not appear in the registered version - http://www.clicktoconvert.com
22. All computers in the world speaks the same languages, so you only need to learn one
programming language - Oracle SQL. True or False?
True
False
Section 17 Lesson 1(Answer all questions in this section) 23. Which
clause would you include in a SELECT statement to restrict the data returned to only the
employees in department 10?
WHERE
FROM
SELECT
IS
24. When using the LIKE condition, which symbol represents any sequence of none,
one or more characters?
_
&
25. Which comparison condition would you use to select rows that match a character
pattern?
IN
LIKE
ALMOST
SIMILAR
A column alias
This watermark does not appear in the registered version - http://www.clicktoconvert.com
A column name
A comparison condition
A constant
27. Which operator is used to combine columns of character strings to other columns?
||
28. You need to display all the rows in the EMPLOYEES table that contain a null value
in the DEPARTMENT_ID column. Which comparison operator should you use?
"= NULL"
NULL!
ISNULL
IS NULL
Section 17 Lesson 2(Answer all questions in this section) 29. You want
to retrieve a list of customers whose last names begin with the letters Fr . Which symbol should
you include in the WHERE clause of your SELECT statement to achieve the desired result?
%
*
30. 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?
AND
IN
This watermark does not appear in the registered version - http://www.clicktoconvert.com
BETWEEN
LIKE
Section 17 Lesson 2(Answer all questions in this section) 31. What will the result of the
following SELECT statement be:
Display the last name, salary and the results of adding 300 to each salary for all the
employees
Modify the salary column by adding 300 and displaying the last name, salary and the new
salary.
Modify the salary column by adding 300 and only display the last name and the new salary.
Display the last name, salary and the results of adding 300 to the salary of the first employee
row
32. 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"?
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM employees;
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM emp;
Which SELECT statement should you use if you want to display unique combinations of the
TEAM_ID and MANAGER_ID columns?
This watermark does not appear in the registered version - http://www.clicktoconvert.com
The first statement will NOT display values from all of the rows in the EMPLOYEE table
False
Section 18 Lesson 1(Answer all questions in this section) 37. Which
statement about the ORDER BY clause is true?
You can use a column alias in the ORDER BY clause.
The ORDER BY clause can only contain columns that are included in the SELECT list.
The ORDER BY clause should immediately precede the FROM clause in a SELECT
statement
38. Which logical operator returns TRUE if either condition is true?
OR
AND
This watermark does not appear in the registered version - http://www.clicktoconvert.com
NOT
BOTH
39. 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?
DESC
ASC
SORT
CHANGE
40. Which of the following are TRUE regarding the logical AND operator?
Section 18 Lesson 1(Answer all questions in this section) 41. The ORDER BY clause
always comes last. True or False?
True
False
42. Which of the following best describes the meaning of the LIKE operator?
SELECT *
FROM employees
WHERE salary > 30000 AND department_id = 10 OR email IS NOT NULL;
The OR and AND conditions have the same precedence and will be evaluated from left to
right
The OR and AND conditions have the same precedence and will be evaluated from right to
left
44. Evaluate this SELECT statement:
The database will display the rows in whatever order it finds it in the database, so no
particular order.
You need to sort data by manager id values and then alphabetically by employee last name and
first name values. Which ORDER BY clause could you use?
This watermark does not appear in the registered version - http://www.clicktoconvert.com
FROM employees
ORDER BY last_name, 3;
48. Evaluate this SELECT statement:
This watermark does not appear in the registered version - http://www.clicktoconvert.com
The rows will be sorted in reverse alphabetical order by the LAST_NAME values.
The rows will be sorted alphabetically by the FIRST_NAME and then the LAST_NAME
values
Section 18 Lesson 3(Answer all questions in this section) 49. The
PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2(20)
FIRST_NAME VARCHAR2(20)
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?
FROM players
WHERE salary > 24999.99 AND salary < 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id ASC, salary DESC;
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;