Download Oracle Datbase 12c SQL.PracticeTest.1z0-071.2019-04-08.1e.119q.vcex

Download Dump

File Info

Exam Oracle Datbase 12c SQL
Number 1z0-071
File Name Oracle Datbase 12c SQL.PracticeTest.1z0-071.2019-04-08.1e.119q.vcex
Size 10.32 Mb
Posted April 08, 2019
Downloads 125



How to open VCEX & EXAM Files?

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

Purchase
Coupon: EXAMFILESCOM

Coupon: EXAMFILESCOM
With discount: 20%





Demo Questions

Question 1
Which three statements are true regarding the WHERE and HAVING clauses in a SQL statement? (Choose three.)

  • A: WHERE and HAVING clauses cannot be used together in a SQL statement.
  • B: The HAVING clause conditions can have aggregate functions.
  • C: The HAVING clause conditions can use aliases for the columns.
  • D: The WHERE clause is used to exclude rows before the grouping of data.
  • E: The HAVING clause is used to exclude one or more aggregated results after grouping data.



Question 2
Which two statements are true regarding roles? (Choose two.)

  • A: A role can be granted to itself.
  • B: A role can be granted to PUBLIC.
  • C: A user can be granted only one role at any point of time.
  • D: The REVOKE command can be used to remove privileges but not roles from other users.
  • E: Roles are named groups of related privileges that can be granted to users or other roles.



Question 3
Which two statements are true regarding constraints? (Choose two)

  • A: A constraint is enforced only for an INSERT operation on a table.
  • B: A foreign key cannot contain NULL values.
  • C: The column with a UNIQUE constraint can store NULLS.
  • D: You can have more than one column in a table as part of a primary key.



Question 4
Evaluate the following statement. 

  

Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?

  • A: They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
  • B: They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
  • C: They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
  • D: The insert statement would give an error because the ELSE clause is not present for support in case none of WHEN clauses are true.



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

  • A: SELECT * FROM MEMBERS WHERE state LIKE '%A_';
  • B: SELECT * FROM MEMBERS WHERE state LIKE 'A_';
  • C: SELECT * FROM MEMBERS WHERE state LIKE 'A_%';
  • D: SELECT * FROM MEMBERS WHERE state LIKE 'A%';



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

  • A: SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS WITH TIES; 
  • B: SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS ONLY WITH TIES; 
  • C: SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS WITH TIES ONLY; 
  • D: SELECT prod_id, cust_id, amount_sold
    FROM sales 
      ORDER BY amount_sold 
      FETCH FIRST 5 PERCENT ROWS ONLY;



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

  • A: none, because no input required
  • B: both the substitution variables ''hiredate' and 'mgr_id'.
  • C: only hiredate'
  • D: only 'mgr_id'



Question 9
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 10
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









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