Beruflich Dokumente
Kultur Dokumente
Correct
2. A table must have a primary key. True or False? Mark for Review
(1) Points
True
False (*)
Correct
Correct
Correct
5. A table must have at least one candidate key, as well as its primary key.
True or False? Mark for Review
(1) Points
True
False (*)
Correct
Correct
7. In an Oracle database, why would 1_TABLE not work as a table name? Mark f
or Review
(1) Points
The database does not understand all capital letters
There is no problem here. You can create a table called 1_TABLE.
Object names must not start with a number. They must begin with a letter (*)
Correct
9. What do you create when you transform a many to many relationship from you
r ER diagram into a physical design? Mark for Review
(1) Points
Unique key constraints
Intersection entity
Intersection table (*)
Two tables with Foreign key constraints between them
Correct
10. The Oracle Database can implement a many to many relationship. You simply
create two foreign keys between the two tables. True or False? Mark for Review
(1) Points
True
False (*)
Correct
11. Which of the following are reasons why you should consider using a Subtype
Implementation? Mark for Review
(1) Points
The resulting table will reside in a single database and be used by just ONE
user.
When the common access paths for the supertypes are different.
Business functionality and business rules, access paths and frequency of acc
ess are all very different between subtypes. (*)
Most of the relationships are at the supertype level
Correct
Section 12
12. What command will return data from the database to you? Mark for Review
(1) Points
FETCH
GET
SELECT (*)
RETURN
Correct.
13. 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.
14. The DESCRIBE command returns all rows from a table. True or False? Mark
for Review
(1) Points
True
False (*)
Correct.
15. The SQL statement ALTER TABLE EMPLOYEES DELETE COLUMN SALARY is a valid s
tatement. True or False? Mark for Review
(1) Points
True
False (*)
Correct.
16. 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 (*)
Section 13
17. System Documentation is developed right at the end once the system has go
ne 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.
18. During which phases of the System Development Life Cycle would you test t
he system before rolling it out to the users? Mark for Review
(1) Points
Build and Transition
Strategy and Analysis
Design and Production
Transition and Production (*)
Correct.
Section 15
19. You want to create a list of all albums that have been produced by the co
mpany. The list should include the title of the album, the artist's name, and th
e date the album was released. The ALBUMS table includes the following columns:
ALB_TITLE VARCHAR2(150) NOT NULL
ALB_ARTIST VARCHAR2(150) NOT NULL
ALB_DATE DATE NOT NULL
Which statement can you use to retrieve the necessary information?
Mark for Review
(1) Points
SELECT *
FROM albums;
(*)
Correct.
20. Which statement best describes how arithmetic expressions are handled? M
ark for Review
(1) Points
Addition operations are handled before any other operations.
Multiplication and subtraction operations are handled before any other opera
tions.
Multiplication and addition operations are handled before subtraction and di
vision operations.
Division and multiplication operations are handled before subtraction and ad
dition operations. (*)
21. Which SQL keyword specifies that an alias will be substituted for a column
name in the output of a SQL query? Mark for Review
(1) Points
AS (*)
OR
AND
SUBSTITUTE
Correct.
23. In the default order of precedence, which operator would be evaluated fir
st? Mark for Review
(1) Points
Subtractions and Addition are at the same level and would be evaluated first
based on left to right order
Multiplications and Division are at the same level and would be evaluated fi
rst based on left to right order (*)
Additions and Multiplications are at the same level and would be evaluated f
irst based on left to right order
Divisions and Subtractions are at the same level and would be evaluated firs
t based on left to right order
Correct.
24. What would you use in the SELECT clause to return all the columns in the
table? Mark for Review
(1) Points
Section 16
25. 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
27. 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 sh
ould you use? Mark for Review
(1) Points
+
|
|| (*)
AND
28. Which statement best describes how column headings are displayed by defau
lt in Oracle Application Express: Mark for Review
(1) Points
Column headings are displayed left-justified and in lowercase.
Column headings are displayed left-justified and in uppercase.
Column headings are displayed centered and in uppercase. (*)
Column headings are displayed centered and in mixed case.
Correct.
29. You need to display employees whose salary is in the range of 10000 throu
gh 25000 for employees in department 50 . What does the WHERE clause look like?
Mark for Review
(1) Points
WHERE department_id < 50
AND salary BETWEEN 10000 AND 25000
WHERE department_id = 50
AND salary BETWEEN 25001 AND 10001
WHERE department_id = 50
AND salary BETWEEN 25000 AND 10000
(*)
30. Where in a SQL statement can you not use arithmetic operators? Mark for
Review
(1) Points
SELECT
FROM (*)
WHERE
NONE
31. 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
SELECT manager_id, department_id DISTINCT FROM employees;
SELECT manager_id, department_id FROM employees; (*)
SELECT DISTINCT manager_id, department_id FROM employees;
SELECT manager_id, DISTINCT department_id FROM employees;
Correct.
32. You need to display all the employees whose last name starts with the let
ters Sm . Which WHERE clause should you use? Mark for Review
(1) Points
Correct.
33. Which of the following commands will display the last name concatenated w
ith the job ID from the employees table, separated by a comma and space, and lab
el the resulting column "Employee and Title"? 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;
SELECT last_name||","|| job_id "Employee and Title" FROM employees;
Correct.
35. Any Non-UID must be dependant on the entire UID. True or False? Mark for
Review
(1) Points
True (*)
False
Correct
Correct
Section 17
37. The ORDER BY clause always comes last. True or False? Mark for Review
(1) Points
True (*)
False
Correct.
38. Which logical operator returns TRUE if either condition is true? Mark fo
r Review
(1) Points
OR (*)
AND
NOT
BOTH
Correct.
39. Which clause would you include in a SELECT statement to sort the rows ret
urned by the LAST_NAME column? Mark for Review
(1) Points
ORDER BY (*)
WHERE
FROM
HAVING
Correct.
40. Which statement about the ORDER BY clause is true? Mark for Review
(1) Points
You can use a column alias in the ORDER BY clause. (*)
The default sort order of the ORDER BY clause is descending.
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 s
tatement
Correct.
42. 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 in
clude in the ORDER BY clause? Mark for Review
(1) Points
DESC (*)
ASC
SORT
CHANGE
Correct.
Correct.
Correct.
Correct.
Correct.
Correct.