0% found this document useful (0 votes)
11 views21 pages

2Oracle Database SQL (1Z0-071) - Mini _ DBExam

The document is a quiz result for the Oracle Database SQL (1Z0-071) exam, where the user scored 3% with 1 out of 36 possible points. It includes a series of questions related to SQL statements, aggregate functions, data manipulation language, and other SQL concepts, with all responses marked as skipped. The document highlights various SQL functionalities and the user's understanding of them through multiple-choice questions.

Uploaded by

Bình Thanh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views21 pages

2Oracle Database SQL (1Z0-071) - Mini _ DBExam

The document is a quiz result for the Oracle Database SQL (1Z0-071) exam, where the user scored 3% with 1 out of 36 possible points. It includes a series of questions related to SQL statements, aggregate functions, data manipulation language, and other SQL concepts, with all responses marked as skipped. The document highlights various SQL functionalities and the user's understanding of them through multiple-choice questions.

Uploaded by

Bình Thanh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam

Oracle Database SQL (1Z0-071) - Mini

You got 1 of 36 possible points.


Your score was: 3 %

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:

The HAVING clause of an INSERT statement

The ORDER BY clause of a SELECT statement

The expression list of a DELETE statement

The select list of a SELECT statement

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:

Finding the lowest value

Finding the quotient

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.

An UPDATE...SET... statement can modify multiple rows based on multiple


conditions on a table.

A DELETE FROM ..... statement can remove rows based on only a single condition
on a table.

An INSERT INTO...VALUES..... statement can add a single row based on multiple


conditions on a table.

A DELETE FROM..... statement can remove multiple rows based on multiple


conditions on a table.

An UPDATE...SET.... statement can modify multiple 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:

It can transform queried data and display the results.

It can remove data from a table.

It can join data from multiple tables.

It can aggregate database data.

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

COUNT(DISTINCT inv_amt) returns the number of rows excluding rows containing


duplicates and NULL values in the INV_AMT 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:

It converts text to uppercase.

https://www.dbexam.com/user/quiz/93067/userresults 3/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam

It uses the keyword IF.

It uses the keyword THEN.

Its END keyword is optional.

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:

FLASHBACK TABLE PO_BOXES TO TIMESTAMP SYSTIMESTAMP—INTERVAL ‘0


00:00:45’ DAY TO SECOND;

FLASHBACK TABLE PO_BOXES TO SYSTIMESTAMP—INTERVAL ‘0 00:00:45’ DAY TO


SECOND;

FLASHBACK TABLE PO_BOXES INTERVAL ‘0 00:00:45’ DAY TO SECOND;

FLASHBACK TABLE PO_BOXES TO TIMESTAMP INTERVAL ‘0 00:00:45’ DAY TO


SECOND;

Question: Score 0 of 1
(skipped)
You issue this command which succeeds:

SQL> DROP TABLE products;

Which three statements are true?

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.

Any uncommitted transaction in the session is committed.

Table data and the table structure are deleted.

All the table's indexes if any exist, are invalidated but retained.

Table data is deleted but the table structure is 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.

None of the above.

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

GRANT ALL ON CBAY TO ONEILL;

GRANT ALL PRIVILEGES TO ONEILL;

GRANT ALL TO ONEILL;

GRANT INSERT, UPDATE ON CBAY TO ONEILL;

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:

May be used in a SELECT but not an UPDATE

Cannot be executed as a standalone query

Must use a table alias when referencing a column in the outer query

All of the above

Question: Score 0 of 1
(skipped)
Examine the command:

What does ON DELETE CASCADE Imply?

Response:

When the BOOKS table is dropped, the BOOK_TRANSACTIONS table is dropped

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.

When a value in the BOOKS.BOOK_ID column is deleted, the corresponding value


is updated in the BOOKS_TRANSACTIONS.BOOK_ID column.

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

Which CREATE VIEW statement would create the view successfully?

Response:

CREATE OR REPLACE VIEW ord_vu (order_id,order_date) AS SELECT


o.order_id, o.order_date, COUNT(i.line_item_id) "NO OF ITEMS"
FROM orders o JOIN order_items i ON (o.order_id = i.order_id)
GROUP BY o.order_id,o.order_date;

CREATE OR REPLACE VIEW ord_vu


AS SELECT o.order_id, o.order_date, COUNT(i.line_item_id) "NO OF ITEMS"
FROM orders o JOIN order_items i ON (o.order_id = i.order_id)
GROUP BY o.order_id,o.order_date;

CREATE OR REPLACE VIEW ord_vu


AS SELECT o.order_id, o.order_date, COUNT(i.line_item_id) FROM orders o
JOIN order_items i ON (o.order_id = i.order_id) GROUP BY
o.order_id,o.order_date;

CREATE OR REPLACE VIEW ord_vu


AS SELECT o.order_id, o.order_date, COUNT(i.line_item_id)ll’ NO OF ITEMS'
FROM orders o JOIN order_items i
ON (o.order_id = i.order_id) GROUP BY o.order_id,o.order_date WITH CHECK
OPTION;

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

Which of the following statements accurately describe the SQL statement?


(Choose two.)

Response:

It contains a syntax error on line 3.

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:

An INSERT statement’s SELECT

A GRANT statement

A WHERE clause in a SELECT statement

An inline view

Question: Score 0 of 1
(skipped)
Which two statements are true regarding multiple-row subqueries?

(Choose two.)

Response:

They can contain group functions.

They always contain a subquery within a subquery.

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.

Review the following SQL statement:

Which of the following is true for the SQL statement?


(Choose two.)

Response:

https://www.dbexam.com/user/quiz/93067/userresults 12/21
10/12/2018 Oracle Database SQL (1Z0-071) - Mini | DBExam

It will fail because there are no table aliases.

It will execute successfully.

It is an outer join.

It connects three tables.

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:

None of the above

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 a syntax error because line 1 is not correct.

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.

It will succeed and display one row.

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.

SQL> SELECT * FROM books transactions ORDER BY 3;

What is the result?

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:

It can be used to specify a subquery.

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.

The USING clause is optional.

It can be used to specify an inline view.

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:

Which statement is true regarding the outcome?

Response:

Only statement 2 executes successfully and gives the required result.

Only statement 1 executes successfully and gives the required result.

Both statements 1 and 2 execute successfully and give different results.

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.

It enables sessions to reuse the same query block in a SELECT statement, if it


occurs more than once in a complex query.

It enables sessions to store a query block permanently in memory and use it to


create complex queries.

It enables sessions to store the results of a query permanently.

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:

Create a new table

Modify the data type of an existing column

Execute a valid COMMENT statement

None of the above

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:

SELECT AVG (NVL (INCIDENTS)) FROM ALARM_HISTORY;

SELECT AVG (NVL (INCIDENTS, 0)) FROM ALARM_HISTORY;

SELECT NVL (AVG (INCIDENTS)) FROM ALARM_HISTORY;

SELECT NVL (AVG (INCIDENTS, 0)) FROM ALARM_HISTORY;

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

SELECT employee_id, first_name, department_name


FROM employees
NATURAL JOIN departments;

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 NATURAL JOIN clause is missing the USING 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 data along with the table structure is deleted.

A pending transaction in the session is committed.

All indexes on the table remain but they are invalidated.

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:

SELECT * FROM MEMBERS WHERE state LIKE '%A_' ;

SELECT * FROM MEMBERS WHERE state LIKE 'A_';

SELECT * FROM MEMBERS WHERE state LIKE 'A_%';

SELECT * FROM MEMBERS WHERE state LIKE 'A%';

Question: Score 0 of 1
(skipped)
You need to display the date 11-oct-2017 in words as 'Eleventh of
October, Two Thousand Seventeen'.

Which SQL statement would give the required result?

Response:

SELECT TO_CHAR (TO_DATE ('11-oct-2017'), 'fmDdthsp of Month, Year') FROM


DUAL;

SELECT TO_CHAR ('11-oct-2017', 'fmDdspth or Month, Year') FROM DUAL;

SELECT TO_CHAR (TO_DATE ('11-oct-2017'), 'fmDdspth "of" Month, Year') FROM


DUAL;

SELECT TO_DATE (TO_CHAR ('11-oct-2017'), 'fmDdspth 'of Month, Year')) FROM


DUAL;

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:

SELECT * FROM HARDING.TEAPOT;

None of the above

SELECT * FROM HARDING.DOME.TEAPOT;

SELECT * FROM DOME.HARDING.TEAPOT;

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy