2Oracle Database SQL (1Z0-071) - Mini _ DBExam
2Oracle Database SQL (1Z0-071) - Mini _ DBExam
Question Results
Question: Score 0 of 1
(skipped)
Assume a table LAMPS that has no constraints. Which of the
following is true about the UPDATE statement and the LAMPS table?
(Choose all that apply.)
Response:
UPDATE can be used to add rows to LAMPS by setting values to all the columns.
UPDATE can be used to remove a row from LAMPS by setting all of the row’s
columns to a value of NULL.
For existing rows in LAMPS, UPDATE can add values to any column with a NULL
value.
For existing rows in LAMPS, UPDATE can remove values from any column by
changing its value to NULL.
Question: Score 0 of 1
(skipped)
An aggregate function can be called from within:
(Choose two.)
Response:
https://www.dbexam.com/user/quiz/93067/userresults 1/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
Which three arithmetic operations can be performed on a column
by using a SQL function that is built into Oracle database?
(Choose three.)
Response:
Raising to a power
Subtraction
Addition
Question: Score 0 of 1
(skipped)
Which two statements are true about Data Manipulation Language
(DML) statements?
Response:
AH INSERT INTO. . .VALUES. . statement can add multiple rows per execution to a
table.
A DELETE FROM ..... statement can remove rows based on only a single condition
on a table.
https://www.dbexam.com/user/quiz/93067/userresults 2/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
Which of the following is not a capability of the SELECT statement?
Response:
Question: Score 0 of 1
(skipped)
Which two statements are true regarding the COUNT function?
(Choose two.)
Response:
COUNT(*) returns the number of rows including duplicate rows and rows containing
NULL value in any of the columns
COUNT(cust_id) returns the number of rows including rows with duplicate customer
IDs and NULL value in the CUST_ID column
A SELECT statement using COUNT function with a DISTINCT keyword cannot have
a WHERE clause
The COUNT function can be used only for CHAR, VARCHAR2 and NUMBER data
types
Question: Score 0 of 1
(skipped)
Which of the following can be said of the CASE statement?
Response:
https://www.dbexam.com/user/quiz/93067/userresults 3/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
Review the following SQL code:
Which of the following statements could be added as line 11 and recover the
deleted rows from the PO_BOXES table?
Response:
Question: Score 0 of 1
(skipped)
You issue this command which succeeds:
Response:
https://www.dbexam.com/user/quiz/93067/userresults 4/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
All existing views and synonyms that refer to the table are invalidated but retained.
All the table's indexes if any exist, are invalidated but retained.
Question: Score 0 of 1
(skipped)
Review the SQL statement in the preceding question. If one of the
INTO clauses executed on a table and resulted in a constraint violation on that
table, what would result?
Response:
The row would not be inserted, and the INSERT statement would skip to the next
row returned by the subquery and perform another pass through the WHEN
conditions.
The row would not be inserted, and the INSERT statement would stop. No
additional rows would be returned by the subquery or processed, but rows that
have already been processed are unaffected.
The row would not be inserted, the INSERT statement would stop, and all rows
affected by the INSERT statement would be rolled back, as if the INSERT statement
had never been executed.
Question: Score 0 of 1
(skipped)
Review the illustration: Which of the following statements, when
executed, will result in an error?
https://www.dbexam.com/user/quiz/93067/userresults 5/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Response:
Question: Score 0 of 1
(skipped)
User account MUSKIE owns a table called CBAY. Which of the
following statements can be executed by MUSKIE and enable user ONEILL to
execute UPDATE statements on the CBAY table?
(Choose three.)
Response:
https://www.dbexam.com/user/quiz/93067/userresults 6/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
If an ALTER TABLE . . . DROP COLUMN statement is executed
against an underlying table upon which a view is based, the status of that view
in the data dictionary changes to:
Response:
COMPILE
INVALID
ALTERED
FLAG
Question: Score 0 of 1
(skipped)
Which of the following are schema objects?
(Choose all that apply.)
Response:
SEQUENCE
PASSWORD
INDEX
ROLE
Question: Score 0 of 1
(skipped)
https://www.dbexam.com/user/quiz/93067/userresults 7/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
A correlated subquery:
Response:
Must use a table alias when referencing a column in the outer query
Question: Score 0 of 1
(skipped)
Examine the command:
Response:
When the BOOKS table is dropped, all the rows in the BOOK_TRANSACTIONS table
are deleted but the table structure is retained
When a row in the BOOKS table is deleted, the rows in the BOOK_TRANSACTIONS
table whose BOOK_ID matches that of the deleted row in the BOOKS table are also
deleted.
Question: Score 0 of 1
(skipped)
View the Exhibit and examine the data in ORDERS and
ORDER_ITEMS tables. You need to create a view that displays the ORDER ID,
ORDER_DATE, and the total number of items in each order.
https://www.dbexam.com/user/quiz/93067/userresults 8/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Response:
Question: Score 0 of 1
(skipped)
Review the illustration and then review the following SQL
statement:
https://www.dbexam.com/user/quiz/93067/userresults 9/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Response:
It is an inner join.
It is a non-equijoin.
It contains a syntax error on line 2 and should have an additional keyword with the
JOIN keyword.
https://www.dbexam.com/user/quiz/93067/userresults 10/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
If you are using an ORDER BY to sort values in descending order, in
which order will they appear?
Response:
If the data type is numeric, the value 400 will appear first before the value 800.
If the data type is character, the value 'Michael' will appear first before the value
'Jackson'.
If the data type is date, the value for June 25, 2010, will appear before the value
for August 29, 2010.
If the data type is character, the value '130' will appear first before '75'.
Question: Score 0 of 1
(skipped)
Which of the following can a subquery be used in?
(Choose all that apply.)
Response:
A GRANT statement
An inline view
Question: Score 0 of 1
(skipped)
Which two statements are true regarding multiple-row subqueries?
(Choose two.)
Response:
They use the < ALL operator to imply less than the maximum.
https://www.dbexam.com/user/quiz/93067/userresults 11/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
They can be used to retrieve multiple rows from a single table only.
They should not be used with the NOT IN operator in the main query if NULL is
likely to be a part of the result of the subquery.
Question: Score 0 of 1
(skipped)
Review the POSITIONS, EMPLOYEES, and PAY_HISTORY tables.
Response:
https://www.dbexam.com/user/quiz/93067/userresults 12/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
It is an outer join.
Question: Score 0 of 1
(skipped)
Which of the following SQL statements creates a table that will
reject attempts to INSERT a row with NULL values entered into the
POSITION_ID column?
Response:
Question: Score 0 of 1
(skipped)
Examine the structure of the members table:
Which query can be used to display the last names and city names only for
members from the states MO and MI?
A)
https://www.dbexam.com/user/quiz/93067/userresults 13/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Exhibit
B)
Exhibit
C)
Exhibit
D)
Exhibit
Response:
Option A
Option B
Option C
Option D
Question: Score 0 of 1
(skipped)
Review the illustration and then look at the SQL code that follows:
https://www.dbexam.com/user/quiz/93067/userresults 14/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
What will happen if you try to execute this query on the PROJECTS table?
Response:
It will fail with an execution error because you cannot use a VARCHAR2 column in a
GROUP BY clause.
It will succeed and display one row for each different value in the PURPOSE
column.
Question: Score 0 of 1
(skipped)
The BOOKS_TRANSACTIONS table exists in your schema in this
database. You execute this SQL statement when connected to your schema in
your database instance.
Response:
The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a
column name.
All table rows are displayed sorted in ascending order of the values in the third
column.
The first three rows in the table are displayed in the order that they are stored.
Only the three rows with the lowest values in the key column are displayed in the
order that they are stored.
Question: Score 0 of 1
(skipped)
The MERGE statement includes a USING clause. Which of the
following statements is not true of the USING clause?
Response:
https://www.dbexam.com/user/quiz/93067/userresults 15/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
The data it identifies remains unchanged after the MERGE statement executes.
Question: Score 0 of 1
(skipped)
View the Exhibit for the structure of the STUDENT and FACULTY
tables.
You need to display the faculty name followed by the number of students
handled by the faculty at the base location. Examine the following two SQL
statements:
Response:
Both statements 1 and 2 execute successfully and give the same required result.
https://www.dbexam.com/user/quiz/93067/userresults 16/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Question: Score 0 of 1
(skipped)
Which two statements best describe the benefits of using the WITH
clause?
(Choose two.
Response:
It can improve the performance of a large query by storing the result of a query
block having the WITH clause in the session's temporary tablespace.
Question: Score 0 of 1
(skipped)
Which of the following actions will not cause the contents of the
data dictionary to be changed in some way?
Response:
Question: Score 0 of 1
(skipped)
Consider the following table listing from the table
ALARM_HISTORY:
https://www.dbexam.com/user/quiz/93067/userresults 17/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
You are tasked to calculate the average number of alarm incidents per day in
ALARM_HISTORY. You know the following query is syntactically correct: SELECT
AVG (INCIDENTS) FROM ALARM_HISTORY;
However, you are aware that the value for INCIDENTS might be NULL, and you
want the AVG returned to be calculated across every day in ALARM_HISTORY,
not just the non-NULL days. Which of the following queries will achieve this
goal?
Response:
Question: Score 0 of 1
(skipped)
View the Exhibit and examine the description of the DEPARTMENTS
and EMPLOYEES tables.
To retrieve data for all the employees for their EMPLOYEE_ID, FIRST_NAME, and
DEPARTMENT NAME, the following SQL statement was written:
https://www.dbexam.com/user/quiz/93067/userresults 18/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
The desired output is not obtained after executing the above SQL statement.
What could be the reason for this?
Response:
The table prefix is missing for the column names in the SELECT clause.
The DEPARTMENTS table is not used before the EMPLOYEES table in the FROM
clause.
The EMPLOYEES and DEPARTMENTS tables have more than one column with the
same column name and data type.
Question: Score 0 of 1
(skipped)
You issue the following command to drop the PRODUCTS table:
SQL > DROP TABLE products;
Which three statements are true about the implication of this command?
Response:
All views and synonyms on the table remain but they are invalidated.
All data in the table is deleted but the table structure remains.
Question: Score 0 of 1
(skipped)
Examine the structure of the members table:
https://www.dbexam.com/user/quiz/93067/userresults 19/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
You want to display details of all members who reside in states starting with the
letter A followed by exactly one character. Which SQL statement must you
execute?
Response:
Question: Score 0 of 1
(skipped)
You need to display the date 11-oct-2017 in words as 'Eleventh of
October, Two Thousand Seventeen'.
Response:
Question: Score 1 of 1
User HARDING owns a table TEAPOT. User HARDING then executes the following
SQL statements to give access to the table to user ALBERT:
https://www.dbexam.com/user/quiz/93067/userresults 20/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam
Which of the following statements can user ALBERT now execute on the TEAPOT
table?
Response:
Money Back Guarantee Testimonial FAQs Privacy Policy Terms and Conditions About Us Join Us
Contact Us
https://www.dbexam.com/user/quiz/93067/userresults 21/21