Download Oracle.1z0-071.PracticeTest.2019-06-19.131q.vcex

Download Exam

File Info

Exam Oracle Datbase 12c SQL
Number 1z0-071
File Name Oracle.1z0-071.PracticeTest.2019-06-19.131q.vcex
Size 13 MB
Posted Jun 19, 2019
Download Oracle.1z0-071.PracticeTest.2019-06-19.131q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

View the exhibit and examine the structures of the EMPLOYEES and DEPARTMENTS tables. 
  
  
You want to update EMPLOYEES table as follows:
  • Update only those employees who work in Boston or Seattle (locations 2900 and 2700). 
  • Set department_id for these employees to the department_id corresponding to London (location_id 2100). 
  • Set the employees' salary in location_id 2100 to 1.1 times the average salary of their department. 
  • Set the employees' commission in location_id 2100 to 1.5 times the average commission of their department. 
You issue the following command:
  
What is outcome?


  1. It generates an error because multiple columns (SALARY, COMMISSION) cannot be specified together in an UPDATE statement.
  2. It generates an error because a subquery cannot have a join condition in a UPDATE statement.
  3. It executes successfully and gives the desired update
  4. It executes successfully but does not give the desired update
Correct answer: D
Explanation:



Question 2

Evaluate the following two queries:
  
Which statement is true regarding the above two queries?


  1. Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
  2. There would be no change in performance.
  3. Performance would degrade in query 2.
  4. Performance would improve in query 2.
Correct answer: B



Question 3

Examine the business rule:
Each student can work on multiple projects and each project can have multiple students. 
You need to design an Entity Relationship Model (ERD) for optimal data storage and allow for generating reports in this format:
STUDENT_ID FIRST_NAME LAST_NAME PROJECT_ID PROJECT_NAME PROJECT_TASK 
Which two statements are true in this scenario? (Choose two.)


  1. The ERD must have a 1:M relationship between the STUDENTS and PROJECTS entities.
  2. The ERD must have a M:M relationship between the STUDENTS and PROJECTS entities that must be resolved into 1:M relationships.
  3. STUDENT_ID must be the primary key in the STUDENTS entity and foreign key in the PROJECTS entity.
  4. PROJECT_ID must be the primary key in the PROJECTS entity and foreign key in the STUDENTS entity.
  5. An associative table must be created with a composite key of STUDENT_ID and PROJECT_ID, which is the foreign key linked to the STUDENTS and PROJECTS entities.
Correct answer: BE
Explanation:
References:http://www.oracle.com/technetwork/issue-archive/2011/11-nov/o61sql-512018.html
References:
http://www.oracle.com/technetwork/issue-archive/2011/11-nov/o61sql-512018.html



Question 4

View the Exhibit and examine the details of PRODUCT_INFORMATION table. 
  
You have the requirement to display PRODUCT_NAME from the table where the CATEGORY_ID column has values 12 or 13, and the SUPPLIER_ID column has the value 102088. You executed the following SQL statement:
SELECT product_name 
FROM product_information 
WHERE (category_id = 12 AND category_id = 13) AND supplier_id = 102088; 
Which statement is true regarding the execution of the query?


  1. It would not execute because the same column has been used in both sides of the AND logical operator to form the condition.
  2. It would not execute because the entire WHERE clause condition is not enclosed within the parentheses.
  3. It would execute and the output would display the desired result.
  4. It would execute but the output would return no rows.
Correct answer: D



Question 5

Which two statements are true regarding the EXISTS operator used in the correlated subqueries? (Choose two.)


  1. The outer query stops evaluating the result set of the inner query when the first value is found.
  2. It is used to test whether the values retrieved by the inner query exist in the result of the outer query.
  3. It is used to test whether the values retrieved by the outer query exist in the result set of the inner query.
  4. The outer query continues evaluating the result set of the inner query until all the values in the result set are processed.
Correct answer: AC
Explanation:
References:http://www.techonthenet.com/oracle/exists.php
References:
http://www.techonthenet.com/oracle/exists.php



Question 6

View the exhibit and examine the structure of the STORES table. 
  
You must display the NAME of stores along with the ADDRESS, START_DATE, PROPERTY_PRICE, and the projected property price, which is 115% of property price. 
The stores displayed must have START_DATE in the range of 36 months starting from 01-Jan-2000 and above. 
Which SQL statement would get the desired output? 


  1. SELECT name, concat (address| | ','| |city| |', ', country) AS full_address,
    start_date, 
    property_price, property_price*115/100 
    FROM stores 
    WHERE MONTHS_BETWEEN (start_date, '01-JAN-2000') <=36; 
  2. SELECT name, concat (address| | ','| |city| |', ', country) AS full_address,
    start_date, 
    property_price, property_price*115/100 
    FROM stores 
  3. WHERE TO_NUMBER(start_date-TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36;
    SELECT name, address||', '||city||', '||country AS full_address, start_date, 
    property_price, property_price*115/100 
    FROM stores 
    WHERE MONTHS_BETWEEN(start_date,TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36; 
  4. SELECT name, concat (address||','| |city| |', ', country) AS full_address,
    start_date, 
    property_price, property_price*115/100 
    FROM stores 
    WHERE MONTHS_BETWEEN (start_date, TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36; 
Correct answer: D



Question 7

The BOOKS_TRANSACTIONS table exists in your database. 
SQL>SELECT * FROM books_transactions ORDER BY 3; 
What is the outcome on execution?


  1. The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a column name.
  2. Rows are displayed in the order that they are stored in the table only for the three rows with the lowest values in the key column.
  3. Rows are displayed in the order that they are stored in the table only for the first three rows.
  4. Rows are displayed sorted in ascending order of the values in the third column in the table.
Correct answer: D



Question 8

Examine the command:
  
What does ON DELETE CASCADE imply? 


  1. When the BOOKS table is dropped, the BOOK_TRANSACTIONS table is dropped.
  2. When the BOOKS table is dropped, all the rows in the BOOK_TRANSACTIONS table are deleted but the table structure is retained.
  3. 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.
  4. When a value in the BOOKS.BOOK_ID column is deleted, the corresponding value is updated in the BOOKS_TRANSACTIONS.BOOK_ID column.
Correct answer: C



Question 9

View the exhibit and examine the structure of the EMPLOYEES table. 
  
You want to display all employees and their managers having 100 as the MANAGER_ID. You want the output in two columns: the first column would have the LAST_NAME of the managers and the second column would have LAST_NAME of the employees. 
Which SQL statement would you execute? 


  1. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e 
    ON m.employee_id = e.manager_id 
    WHERE m.manager_id = 100; 
  2. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e 
    ON m.employee_id = e.manager_id 
    WHERE e.manager_id = 100; 
  3. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e 
    ON e.employee_id = m.manager_id 
    WHERE m.manager_id = 100; 
  4. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e 
    WHERE m.employee_id = e.manager_id AND e.manager_id = 100
Correct answer: B



Question 10

Which three statements are true about multiple-row subqueries?


  1. They can contain a subquery within a subquery.
  2. They can return multiple columns as well as rows.
  3. They cannot contain a subquery within a subquery.
  4. They can return only one column but multiple rows.
  5. They can contain group functions and GROUP BY and HAVING clauses.
  6. They can contain group functions and the GROUP BY clause, but not the HAVING clause.
Correct answer: ABE









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files