Download Oracle Datbase 12c SQL.1z0-071.PassCertification.1999-11-30.200q.vcex

Vendor: Oracle
Exam Code: 1z0-071
Exam Name: Oracle Datbase 12c SQL
Date: Nov 30, 1999
File Size: 14 MB
Downloads: 3

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
Evaluate the following SQL statement:
SQL> select cust_id, cust_last_name "Last name" 
FROM customers 
WHERE country_id = 10 
UNION 
SELECT cust_id CUST_NO, cust_last_name 
FROM customers 
WHERE country_id = 30 
Identify three ORDER BY clauses either one of which can complete the query. 
  1. ORDER BY "Last name"
  2. ORDER BY 2, cust_id
  3. ORDER BY CUST_NO
  4. ORDER BY 2, 1
  5. ORDER BY "CUST_NO"
Correct answer: ABD
Explanation:
Using the ORDER BY Clause in Set Operations The ORDER BY clause can appear only once at the end of the compound query. Component queries cannot have individual ORDER BY clauses. The ORDER BY clause recognizes only the columns of the first SELECT query. By default, the first column of the first SELECT query is used to sort the output in an ascending order.
Using the ORDER BY Clause in Set Operations 
  • The ORDER BY clause can appear only once at the end of the compound query. 
  • Component queries cannot have individual ORDER BY clauses. 
  • The ORDER BY clause recognizes only the columns of the first SELECT query. 
  • By default, the first column of the first SELECT query is used to sort the output in an ascending order.
Question 2
Which two statements are true regarding roles? (Choose two.)
  1. A role can be granted to itself.
  2. A role can be granted to PUBLIC.
  3. A user can be granted only one role at any point of time.
  4. The REVOKE command can be used to remove privileges but not roles from other users.
  5. Roles are named groups of related privileges that can be granted to users or other roles.
Correct answer: BE
Explanation:
References:http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#autoId28
References:
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#autoId28
Question 3
Which two statements are true regarding constraints? (Choose two)
  1. A constraint is enforced only for an INSERT operation on a table.
  2. A foreign key cannot contain NULL values.
  3. A column with the UNIQUE constraint can store NULLS.
  4. You can have more than one column in a table as part of a primary key.
Correct answer: CD
Question 4
Evaluate the following statement. 
  
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?
  1. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
  2. They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
  3. They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
  4. The insert statement would give an error because the ELSE clause is not present for support in case none of WHEN clauses are true.
Correct answer: A
Explanation:
References:http://psoug.org/definition/WHEN.htm
References:
http://psoug.org/definition/WHEN.htm
Question 5
You want to display 5 percent of the rows from the SALES table for products with the lowest AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if this causes the output to exceed 5 percent of the rows. 
Which query will provide the required result? 
  1. SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS WITH TIES; 
  2. SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS ONLY WITH TIES; 
  3. SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS WITH TIES ONLY; 
  4. SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS ONLY;
Correct answer: A
Question 6
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.)
  1. All data along with the table structure is deleted.
  2. A pending transaction in the session is committed.
  3. All indexes on the table remain but they are invalidated.
  4. All views and synonyms on the table remain but they are invalidated.
  5. All data in the table is deleted but the table structure remains.
Correct answer: ABD
Question 7
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? 
  
  1. DELETE orders o, order_items i
    WHERE o.order_id = i.order_id; 
  2. DELETE
    FROM orders 
    WHERE (SELECT order_id 
    FROM order_items); 
  3. DELETE orders
    WHERE order_total < 1000; 
  4. DELETE order_id
    FROM orders 
    WHERE order_total < 1000;
Correct answer: C
Question 8
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 9
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 10
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
    WHERE TO_NUMBER(start_date-TO_DATE('01-JAN-2000','DD-MON-RRRR')) <=36;
  3. 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
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!