[2021] 1z0-071 Exam Dumps, Test Engine Practice Test Questions [Q141-Q160]

Share

[2021] 1z0-071 Exam Dumps, Test Engine Practice Test Questions

Pass 1z0-071 exam [Nov 14, 2021] Updated 305 Questions


For more info, read the reference:

Oracle Database SQL Exam Number: 1Z0-071


Passing this Oracle exam means that you are on the way of getting the following credentials:

  • Oracle Database SQL Certified Associate
  • Oracle Database 12c Administrator Certified Associate;

Completing 1Z0-071 is enough to obtain the first certificate of the associate level, while for gaining the second one in the Oracle Database 12c Administrator track, passing the 1Z0-062 exam is a necessity. Anyway, having any of these certifications on your CV will show your employer your ability to apply SQL knowledge for the Oracle Database server maintenance.

 

NEW QUESTION 141
Examine these SQL statements that are executed in the given order:

What will be the status of the foreign key EMP_MGR_FK?

  • A. It will remain disabled and can be enabled only by dropping the foreign key constraint and re-creating it.
  • B. It will be enabled and immediate.
  • C. It will be enabled and deferred.
  • D. It will remain disabled and can be re-enabled manually.

Answer: D

 

NEW QUESTION 142
Examine the structure of the ORDERS table: (Choose the best answer.)

You want to find the total value of all the orders for each year and issue this command:
SQL> SELECT TO_CHAR(order_date,'rr'), SUM(order_total) FROM orders
GROUP BY TO_CHAR(order_date, 'yyyy');
Which statement is true regarding the result?

  • A. It executes successfully but does not give the correct output.
  • B. It return an error because the datatype conversion in the SELECT list does not match the data type conversion in the GROUP BY clause.
  • C. It executes successfully and gives the correct output.
  • D. It returns an error because the TO_CHAR function is not valid.

Answer: B

 

NEW QUESTION 143
View the Exhibit and examine the description for the PRODUCTS and SALES table.

PROD_ID is a primary key in the PRODUCTS table and foreign key in the SALES table with ON DELETE CASCADE option. The SALES table contains data for the last three years. You want to remove all the rows from the PRODUCTS table for which no sale was done for the last three years.
Which is the valid DELETE statement?

  • A. DELETEFROM productsWHERE prod_id IN (SELECT prod_idFROM salesWHERE time_id >= SYSDATE - 3*365 );
  • B. DELETEFROM productsWHERE prod_id IN (SELECT prod_idFROM salesWHERE SYSDATE - 3*365 >= time_id);
  • C. DELETEFROM productsWHERE prod_id = (SELECT prod_idFROM salesWHERE SYSDATE >= time_id - 3*365 );
  • D. DELETEFROM productsWHERE prod_id = (SELECT prod_idFROM salesWHERE time_id - 3*365 = SYSDATE );

Answer: B

 

NEW QUESTION 144
The SQL statements executed in a user session are as follows:

Which two statements describe the consequences of issuing the ROLLBACK TO SAVE POINT a command in the session? (Choose two.)

  • A. Only the DELETE statements are rolled back.
  • B. The rollback generates an error.
  • C. No SQL statements are rolled back.
  • D. Only the second DELETE statement is rolled back.
  • E. Both the DELETE statements and the UPDATE statement are rolled back.

Answer: B,C

 

NEW QUESTION 145
Examine the description of the EMPLOYEES table:

You write this falling statement:
SELECT dept-no AS department_id MAX (salary) AS max-sal
FROM employees
WHERE salary > 10000
GROUP BY department_id
ORDER BY max-sal:
Which clause causes the error?

  • A. SELECT
  • B. WHERE
  • C. GROUP BY
  • D. ORDER BY

Answer: C

 

NEW QUESTION 146
View the Exhibit and examine the structure of the PRODUCT_INFORMATION table.

PRODUCT_ID column is the primary key.
You create an index using this command:
SQL > CREATE INDEX upper_name_idx
ON product_information(UPPER(product_name));
No other indexes exist on the PRODUCT_INFORMATION table.
Which query would use the UPPER_NAME_IDX index? (Choose the best answer.)

  • A. SELECT UPPER(product_name)FROM product_informationWHERE product_id = 2254;
  • B. SELECT product_id, UPPER(product_name)FROM product_informationWHERE
    UPPER(product_name)='LASERPRO' OR list_price > 1000;
  • C. SELECT UPPER(product_name)FROM product_information;
  • D. SELECT product_idFROM product_informationWHERE UPPER(product_name) IN ('LASERPRO',
    'CABLE');

Answer: D

 

NEW QUESTION 147
Which three statements are true about performing Data Manipulation Language (DML) operations on a view in an Oracle Database? (Choose three.)

  • A. Insert statements can always be done on a table through a view.
  • B. Views cannot be used to add rows to an underlying table if the table has columns with NOT NULL constraints lacking default values which are not referenced in the defining query of the view.
  • C. Views cannot be used to add or modify rows in an underlying table if the defining query of the view contains aggregating functions.
  • D. The WITH CHECKclause has no effect when deleting rows from the underlying table through the view.
  • E. Views cannot be used to add or modify rows in an underlying table if the defining query of the view contains the DISTINCTkeyword.
  • F. Views cannot be used to query rows from an underlying table if the table has a PRIMARY KEYand the PRIMARY KEYcolumns are not referenced in the defining query of the view.

Answer: B,C,E

 

NEW QUESTION 148
View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.

The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table.
Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Evaluate the following CREATE TABLE command:
CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE)
AS
SELECT prod_id, cust_id, time_id
FROM sales;
Which statement is true regarding the above command?

  • A. The NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match.
  • B. The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified columns would be passed to the new table.
  • C. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the specified columns would be passed to the new table.
  • D. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition.

Answer: B

 

NEW QUESTION 149
Examine the description of the PRODUCT_STATUS table:

The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row.
Which two queries will execute successfully?

  • A. Option E
  • B. Option D
  • C. Option A
  • D. Option F
  • E. Option C
  • F. Option B

Answer: A,F

 

NEW QUESTION 150
Examine the data in the CUSTOMERS table:

You want to list all cities that have more than one customer along with the customer details.
Evaluate the following query:

Which two JOIN options can be used in the blank in the above query to give the correct output? (Choose two.)

  • A. LEFT OUTER JOIN
  • B. RIGHT OUTER JOIN
  • C. NATURAL JOIN
  • D. FULL OUTER JOIN
  • E. JOIN

Answer: B,E

 

NEW QUESTION 151
View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables.

You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in the ORDERS table.
Which two DELETE statements are valid (Choose two.)

  • A. DELETE FROM order_items iWHERE order_id = (SELECT order_id FROM orders oWHERE i.order_id = o.order_id AND order_status IN (0,1));
  • B. DELETEFROM order_itemsWHERE order_id IN (SELECT order_idFROM ordersWHERE orders_status in (0,1));
  • C. DELETEFROM (SELECT * FROM order_items I,orders oWHERE i.order_id = o.order_id AND order_status IN (0,1));
  • D. DELETE *FROM order_itemsWHERE order_id IN (SELECT order_id)FROM ordersWHERE order_status IN (0,1));

Answer: B,C

 

NEW QUESTION 152
SCOTTis a user in the database.
Evaluate the commands issued by the DBA:

Which statement is true regarding the execution of the above commands?

  • A. Statement 3 would not execute because role and system privileges cannot be granted together in a single GRANTstatement.
  • B. Statement 1 would not execute because the IDENTIFIED BY <password>clause is missing.
  • C. Statement 1 would not execute because the WITH GRANToption is missing.
  • D. Statement 2 would not execute because system privileges and object privileges cannot be granted together in a single GRANTcommand.

Answer: D

Explanation:
Explanation/Reference:

 

NEW QUESTION 153
View the exhibit and examine the structure of the EMPLOYEEStable.

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_NAMEof the managers and the second column would have LAST_NAMEof 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 e.employee_id = m.manager_id
    WHERE m.manager_id = 100;
  • B. SELECT m.last_name "Manager", e.last_name "Employee"
    FROM employees m JOIN employees e
    WHERE m.employee_id = e.manager_id and AND e.manager_id = 100
  • C. 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;
  • D. 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;

Answer: D

 

NEW QUESTION 154
Which two are true about global temporary tables?

  • A. Their data is always stored in the default temporary tablespace of the user who created them.
  • B. Indexes can be created on them.
  • C. If the ON COMMIT clause is session-specific,the table is dropped when the session is terminated.
  • D. Backup and recovery operations are available for these tables.
  • E. If the ON COMMIT clause Is transaction-specific, all rows in the table are deleted alter each COMMIT or ROLLBACK.
  • F. They can be created only by a user with the DBA role,but can be accessed by all users who can create a session.

Answer: C,E

 

NEW QUESTION 155
Which three statements are true about defining relations between tables in a relational database?

  • A. Every primary or unique key value must refer to a matching foreign key value.
  • B. Every foreign key value must refer to a matching primary or unique key value.
  • C. Foreign key columns allow null values.
  • D. Unique key columns allow null values.
  • E. Primary key columns allow null values.

Answer: B,E

 

NEW QUESTION 156
Which two statements execute successfully?

  • A. SELECT TO _ CHAR ('2019-DEC-25 15:30'.'YYYY-MON-DD HH24:MI')
    FROM DUAL
  • B. SELECT TO_CHAR('2019-DEC-25 15:30", YY-MON-D HH24:M2', 'NLS_DATE LANGUAGE =
    AMERICAN')
    FROM DUAL;
  • C. SELECT TO _ CHAR (TO_ DATE ('2019-DEC-25 03:30','YYYY-MON-DD HH12:MI'))
    FROM DUAL
  • D. SELECT TO _DATE (TO_ CHAR ('2019-DEC-25 03:30', 'YYYY-MON-DD HH12:MI'))
    FROM DUAL;
  • E. SELECT TO_ DATE('2019-DEC-25 15:30', 'YYYY-MON-DD HH24:MI', 'NLS_ DATE_ LANGUAGE
    =AMERICAN' ) FROM DUAL;

Answer: C,E

 

NEW QUESTION 157
View the exhibits and examine the structures of the COSTSand PROMOTIONStables.


Evaluate the following SQL statement:
SQL> SELECT prod_id FROM costs
WHERE promo_id IN (SELECT promo_id FROM promotions
WHERE promo_cost < ALL
( SELECT MAX(promo_cost) FROM promotions
GROUP BY (promo_end_date-
promo_begin_date)));
What would be the outcome of the above SQL statement?

  • A. It displays prod IDs in the promos with the lowest cost in the same time interval.
  • B. It displays prod IDs in the promos which cost less than the highest cost in the same time interval.
  • C. It displays prod IDs in the promos with the highest cost in the same time interval.
  • D. It displays prod IDs in the promo with the lowest cost.

Answer: B

 

NEW QUESTION 158
An Oracle database server session has an uncommitted transaction in progress which updated 5000 rows in a table.
In which three situations does the transactions complete thereby committing the updates? (Choose three.)

  • A. when a CREATE INDEXstatement is executed successfully in the same session
  • B. when the session logs out successfully
  • C. when a DBA issues a successful SHUTDOWN TRANSACTIONALstatement and the user then issues a COMMIT
  • D. when a COMMITstatement is issued by the same user from another session in the same database instance
  • E. when a DBA issues a successful SHUTDOWN IMMEDIATEstatement and the user then issues a COMMIT
  • F. when a CREATE TABLE AS SELECTstatement is executed unsuccessfully in the same session

Answer: A,B,E

Explanation:
Explanation/Reference:

 

NEW QUESTION 159
Examine this list of queries:
1. SELECT ROUND (TRUNC (15, 193, 1)) ''Results'' FROM DUAL;
2. SELECT ROUND (15, 193, 1)) ''Results'' FROM DUAL;
3. SELECT (TRUNC (15, 193, 1)) ''Results'' FROM DUAL;
4. SELECT ROUND (ROUND (15. 193, 1)) ''Results'' FROM DUAL;
Which two statements are true?

  • A. 1 and 4 give different results.
  • B. 3 returns an error.
  • C. 1 and 4 give the same result.
  • D. 2 returns the value 20.
  • E. 2 and 3 give the same result.

Answer: A,D

 

NEW QUESTION 160
......


Exam Details

The Oracle 1Z0-071 exam is made up of 78 multiple-choice questions that are to be completed within the allocated timeframe of 120 minutes. The test is proctored by Pearson VUE, the official partner of Oracle. To schedule your session, you need to pay the fee of $245. But before that, you have to create an account with CertView, a web-based portal for all the Oracle certification activity. After you complete the exam, you will receive a notification from Oracle to your email address that your results are available on CertView. Log into the portal and click “See My New Exam Result Now” to find out whether you passed your 1Z0-071 test or not. To ace this exam, you need to give no less than 63% of correct answers.

It is strongly recommended that you undertake the relevant training before attempting the certification test. You can opt for one of the official courses offered by Oracle on its website. The examinees are encouraged to use Oracle training in combo with hands-on experience gained with the help of practical labs.

 

Oracle 1z0-071 Real 2021 Braindumps Mock Exam Dumps: https://www.itcertmagic.com/Oracle/real-1z0-071-exam-prep-dumps.html

Oracle 1z0-071 Actual Questions and 100% Cover Real Exam Questions: https://drive.google.com/open?id=1PH0Dg_uBj7TAs9o81wtXssJCgqC5Fp4f