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 11 out of 72 Pages

Examine the commands used to create DEPARTMENT_DETAILS and
COURSE_DETAILS:

You want to generate a report that shows all course IDs irrespective of whether they have
corresponding department IDs or not but no department IDs if they do not have any
courses.
Which SQL statement must you use?
http://selfexamtraining.com/uploadimages/1z0-071-Q-51.jpg


A.

SELECT course_id, department_id, FROM department_details d RIGHT OUTER JOIN
course_details c USING (department_id)


B.

SELECT c.course_id, d.department_id FROM course_details c RIGHT OUTER JOIN
.department_details d ON (c.depatrment_id=d.department_id)


C.

SELECT c.course_id, d.department_id FROM course_details c FULL OUTER JOIN department_details d ON (c.department_id=d. department_id)


D.

SELECT c.course_id, d.department_id FROM course_details c FULL OUTER JOIN
department_details d ON (c.department_id<>d. department_id)





C.
  

SELECT c.course_id, d.department_id FROM course_details c FULL OUTER JOIN department_details d ON (c.department_id=d. department_id)



You must create a table for a banking application. (Choose the best answer.)
One of the columns in the table has these requirements:
1: A column to store the duration of a short team loan
2: The data should be stored in a format supporting DATE arithmetic with DATE datatypes
without using conversion functions.
3: The maximum loan period is 30 days.
4: Interest must be calculated based on the number of days for which the loan remains
unpaid.
Which data type would you use?


A.

Date


B.

Number


C.

Timestamp


D.

Interval day to second


E.

Interval year to month





D.
  

Interval day to second



Which two partitioned table maintenance operations support asynchronous Global Index
Maintenance in Oracle database 12c?


A.

ALTER TABLE SPLIT PARTITION


B.

ALTER TABLE MERGE PARTITION


C.

ALTER TABLE TRUNCATE PARTITION


D.

ALTER TABLE ADD PARTITION


E.

ALTER TABLE DROP PARTITION


F.

ALTER TABLE MOVE PARTITION





C.
  

ALTER TABLE TRUNCATE PARTITION



E.
  

ALTER TABLE DROP PARTITION



View the Exhibit and examine the structure of CUSTOMERS table.
Using the CUSTOMERS table, you need to generate a report that shows an increase in the
credit limit by 15% for all customers. Customers whose credit limit has not been entered
should have the message "Not Available" displayed.
Which SQL statement would produce the required result?



A.

SELECT NVL (TO CHAR(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"FROM
customers;


B.

SELECT TO_CHAR (NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"FROM
customers;


C.

SELECT NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"FROM customers;


D.

SELECT NVL(cust_credit_limit), 'Not Available') "NEW CREDIT"FROM customers;





A.
  

SELECT NVL (TO CHAR(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"FROM
customers;



View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS
tables.
EMPLOYEES
NameNull?Type
----------- -------
EMPLOYEE_IDNOT NULLNUMBER(6)
FIRST_NAMEVARCHAR2(20)
LAST_NAMENOT NULLVARCHAR2(25)
HIRE_DATENOT NULLDATE
JOB_IDNOT NULLVARCHAR2(10)
SALARYNUMBER(10,2)
COMMISSIONNUMBER(6,2)
MANAGER_IDNUMBER(6)
DEPARTMENT_IDNUMBER(4)
DEPARTMENTS
NameNull?Type
----------- -------
DEPARTMENT_IDNOT NULLNUMBER(4)
DEPARTMENT_NAMENOT NULLVARCHAR2(30)
MANAGER_IDNUMBER(6)
LOCATION_IDNUMBER(4)
You want to update EMPLOYEES table as follows:
You issue the following command:
SQL> UPDATE employees
SET department_id =
(SELECT department_id
FROM departments
WHERE location_id = 2100),
(salary, commission) =
(SELECT 1.1*AVG(salary), 1.5*AVG(commission)
FROM employees, departments
WHERE departments.location_id IN(2900, 2700, 2100))
WHERE department_id IN
(SELECT department_id
FROM departments
WHERE location_id = 2900
OR location_id = 2700;
What is outcome?


A.

It generates an error because multiple columns (SALARY, COMMISSION) cannot be
specified together in an UPDATE statement.


B.

It generates an error because a subquery cannot have a join condition in a UPDATE
statement.


C.

It executes successfully and gives the desired update


D.

It executes successfully but does not give the desired update





D.
  

It executes successfully but does not give the desired update




Page 11 out of 72 Pages
Previous