Download Oracle.1z0-071.TestKing.2019-03-21.120q.vcex

Download Exam

File Info

Exam Oracle Datbase 12c SQL
Number 1z0-071
File Name Oracle.1z0-071.TestKing.2019-03-21.120q.vcex
Size 10 MB
Posted Mar 21, 2019
Download Oracle.1z0-071.TestKing.2019-03-21.120q.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

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 three statements are true regarding the WHERE and HAVING clauses in a SQL statement? (Choose three.)


  1. WHERE and HAVING clauses cannot be used together in a SQL statement.
  2. The HAVING clause conditions can have aggregate functions.
  3. The HAVING clause conditions can use aliases for the columns.
  4. The WHERE clause is used to exclude rows before the grouping of data.
  5. The HAVING clause is used to exclude one or more aggregated results after grouping data.
Correct answer: ABD



Question 3

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 4

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. The column with a 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 5

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 6

Examine the structure of the MEMBERS table:
  
You want to display details of all members who reside in states starting with the letter A followed by exactly one character. 
Which SQL statement must you execute? 


  1. SELECT * FROM MEMBERS WHERE state LIKE '%A_';
  2. SELECT * FROM MEMBERS WHERE state LIKE 'A_';
  3. SELECT * FROM MEMBERS WHERE state LIKE 'A_%';
  4. SELECT * FROM MEMBERS WHERE state LIKE 'A%';
Correct answer: B



Question 7

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 8

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?


  1. It fails because the alias name specified after the column names is invalid.
  2. It fails because the space specified in single quotation marks after the first two column names is invalid.
  3. It executes successfully and displays the column details in a single column with only the alias column heading.
  4. It executes successfully and displays the column details in three separate columns and replaces only the last column heading with the alias.
Correct answer: D



Question 9

You execute the following commands:
SQL > DEFINE hiredate = '01-APR-2011' 
SQL >SELECT employee_id, first_name, salary 
    FROM employees 
    WHERE hire_date > '&hiredate' 
    AND manager_id > &mgr_id; 
For which substitution variables are you prompted for the input?


  1. none, because no input required
  2. both the substitution variables ''hiredate' and 'mgr_id'.
  3. only hiredate'
  4. only 'mgr_id'
Correct answer: D



Question 10

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? 
  


  1. SELECT NVL (TO CHAR(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers; 
  2. SELECT TO_CHAR (NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers; 
  3. SELECT NVL(cust_credit_limit * .15), 'Not Available') "NEW CREDIT"
    FROM customers; 
  4. SELECT NVL(cust_credit_limit), 'Not Available') "NEW CREDIT"
    FROM customers;
Correct answer: A









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