Download Oracle Datbase 12c SQL.Pass4sures.1z0-071.2018-11-19.1e.101q.vcex

Download Exam

File Info

Exam Oracle Datbase 12c SQL
Number 1z0-071
File Name Oracle Datbase 12c SQL.Pass4sures.1z0-071.2018-11-19.1e.101q.vcex
Size 8.92 Mb
Posted November 19, 2018
Downloads 143

How to open VCEX & EXAM Files?

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

Purchase
Coupon: EXAM_HUB

Discount: 20%

 
 



Demo Questions

Question 1
Examine the structure of the MEMBERS table:


You execute the SQL statement:
SQL > SELECT member_id, ' ' , first_name, ' ' , last_name "ID FIRSTNAME LASTNAME " FROM members; 

What is the outcome?

  • A: It fails because the alias name specified after the column names is invalid.
  • B: It fails because the space specified in single quotation marks after the first two column names is invalid.
  • C: It executes successfully and displays the column details in a single column with only the alias column heading.
  • D: It executes successfully and displays the column details in three separate columns and replaces only the last column heading with the alias.



Question 2
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? (Choose three.)

  • A: All data along with the table structure is deleted.
  • B: A pending transaction in the session is committed.
  • C: All indexes on the table remain but they are invalidated.
  • D: All views and synonyms on the table remain but they are invalidated.
  • E: All data in the table is deleted but the table structure remains.



Question 3
View the Exhibit and examine the structure of ORDERS and ORDER_ITEMS tables. 
ORDER_ID is the primary key in the ORDERS table. It is also the foreign key in the ORDER_ITEMS table wherein it is created with the ON DELETE CASCADE option. 
Which DELETE statement would execute successfully? 

  

  • A: DELETE orders o, order_items i
    WHERE o.order_id = i.order_id; 
  • B: DELETE
    FROM orders 
    WHERE (SELECT order_id 
    FROM order_items); 
  • C: DELETE orders
    WHERE order_total < 1000; 
  • D: DELETE order_id
    FROM orders 
    WHERE order_total < 1000;



Question 4
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;



Question 5
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?

  • 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



Question 6
Evaluate the following two queries:

 
 
Which statement is true regarding the above two queries?

  • A: Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.
  • B: There would be no change in performance.
  • C: Performance would degrade in query 2.
  • D: Performance would improve in query 2.



Question 7
View the exhibit and examine the structure of the STORES table. 

  

You want to display the NAME of the store 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? 

  • A: 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; 
  • B: SELECT name, concat (address| | ','| |city| |', ', country) AS full_address,
    start_date, 
    property_price, property_price*115/100 
    FROM stores 
    WHERE TO_NUMBER(start_date-TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36; 
  • C: 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; 
  • D: 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;



Question 8
The BOOKS_TRANSACTIONS table exists in your database. 
SQL>SELECT * FROM books_transactions ORDER BY 3; 

What is the outcome on execution?

  • A: The execution fails unless the numeral 3 in the ORDER BY clause is replaced by a column name.
  • B: 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.
  • C: Rows are displayed in the order that they are stored in the table only for the first three rows.
  • D: Rows are displayed sorted in ascending order of the values in the third column in the table.



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? 

  • A: 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; 
  • B: 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; 
  • C: 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; 
  • D: 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



Question 10
Which three statements are true about multiple-row subqueries?

  • A: They can contain a subquery within a subquery. 
  • B: They can return multiple columns as well as rows.
  • C: They cannot contain a subquery within a subquery.
  • D: They can return only one column but multiple rows.
  • E: They can contain group functions and GROUP BY and HAVING clauses.
  • F: They can contain group functions and the GROUP BY clause, but not the HAVING clause.






CONNECT US


ProfExam
PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount..

Get Now!


HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen



HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset