Go Back on 1z0-071 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

1z0-071 Practice Test


Page 3 out of 72 Pages

Using the CUSTOMERS table, you need to generate a report that shows 50% of each
credit amount in each income level. The report should NOT show any repeated credit
amounts in each income level.
Which query would give the required result?


A.

SELECT cust_income_level || ‘ ’ || cust_credit_limit * 0.50 AS “50% Credit Limit” FROM
customers.


B.

SELECT DISTINCT cust_income_level || ‘ ’ || cust_credit_limit * 0.50 AS “50% Credit
Limit” FROM customers.


C.

SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS “50%
Credit Limit” FROM customers.


D.

SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS “50% Credit Limit”
FROM customers





B.
  

SELECT DISTINCT cust_income_level || ‘ ’ || cust_credit_limit * 0.50 AS “50% Credit
Limit” FROM customers.



Evaluate the following query:
SQL> SELECT TRUNC (ROUND (156.00, -1),-1)
FROM DUAL;
What would be the outcome?


A.

150


B.

200


C.

160


D.

16


E.

100





C.
  

160



References:
https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm
https://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_2127.htm

View the Exhibit and examine the structure of the CUSTOMERS and CUST_HISTORY
tables.

The CUSTOMERS table contains the current location of all currently active customers.
The CUST_HISTORY table stores historical details relating to any changes in the location
of all current as well as previous customers who are no longer active with the company.
You need to find those customers who have never changed their address.
Which SET operator would you use to get the required output?


A.

INTERSECT


B.

UNION ALL


C.

MINUS


D.

UNION





C.
  

MINUS



Evaluate the following statement.
INSERT ALL
WHEN order_total < 10000 THEN
INTO small_orders
WHEN order_total > 10000 AND order_total < 20000 THEN
INTO medium_orders
WHEN order_total > 200000 AND order_total < 20000 THEN
INTO large_orders
SELECT order_id, order_total, customer_id
FROM orders;
Which statement is true regarding the evaluation of rows returned by the subquery in the
INSERT statement?


A.

They are evaluated by all the three WHEN clauses regardless of the results of the
evaluation of any other WHEN clause.


B.

They are evaluated by the first WHEN clause. If the condition is true, then the row would
be evaluated by the subsequent WHEN clauses.


C.

They are evaluated by the first WHEN clause. If the condition is false, then the row
would be evaluated by the subsequent WHEN clauses.


D.

The insert statement would give an error because the ELSE clause is not present for
support in case none of WHEN clauses are true.





A.
  

They are evaluated by all the three WHEN clauses regardless of the results of the
evaluation of any other WHEN clause.



http://psoug.org/definition/WHEN.htm

View the Exhibit and examine the structure of the ORDERS table. (Choose the best
answer.)

You must select ORDER_ID and ORDER_DATE for all orders that were placed after the
last order placed by CUSTOMER_ID 101.
Which query would give you the desired result?


A.

SELECT order_id, order_date FROM ordersWHERE order_date > ANY(SELECT
order_date FROM orders WHERE customer_id = 101);


B.

SELECT order_id, order_date FROM ordersWHERE order_date > ALL(SELECT
MAX(order_date) FROM orders ) AND customer_id = 101;


C.

SELECT order_id, order_date FROM ordersWHERE order_date > ALL(SELECT
order_date FROM orders WHERE customer_id = 101);


D.

SELECT order_id, order_date FROM ordersWHERE order_date > IN(SELECT
order_date FROM orders WHERE customer_id = 101);





C.
  

SELECT order_id, order_date FROM ordersWHERE order_date > ALL(SELECT
order_date FROM orders WHERE customer_id = 101);




Page 3 out of 72 Pages
Previous