[Free] 2018(Jan) Latesttests Dumpsleader Oracle 1z0-047 Dumps with VCE and PDF Download 11-20

Latesttests 2018 Jan Oracle Official New Released 1z0-047
100% Free Download! 100% Pass Guaranteed!
http://www.Latesttests.com/1z0-047.html

Oracle Database SQL Expert

Question No: 11

View the Exhibit and examine the data in ORDERS_MASTER and MONTHLYjDRDERS tables.

Latesttests 2018 PDF and VCE

Evaluate the following MERGE statement:

MERGE INTO orders_master o USING monthly_orders m

ON (o.order_id = m.order_id) WHEN MATCHED THEN

UPDATE SET o.order_total = m.order_total DELETE WHERE (m.order_total IS NULL) WHEN NOT MATCHED THEN

INSERT VALUES (m.order_id, m.order_total);

What would be the outcome of the above statement?

  1. The ORDERS_MASTER table would contain the ORDERJDs 1 and 2.

  2. The ORDERS_MASTER table would contain the ORDERJDs 1,2 and 3.

  3. The ORDERS_MASTER table would contain the ORDERJDs 1,2 and 4.

  4. The ORDERS MASTER table would contain the ORDER IDs 1,2,3 and 4.

Answer: C

Question No: 12

The user SCOTT who is the owner of ORDERS and ORDERJTEMS tables issues the following GRANT command:

GRANT ALL

ON orders, order_items TO PUBLIC;

What correction needs to be done to the above statement?

  1. PUBLIC should be replaced with specific usernames.

  2. ALL should be replaced with a list of specific privileges.

  3. WITH GRANT OPTION should be added to the statement.

  4. Separate GRANT statements are required for ORDERS and ORDERJTEMS tables.

Answer: D

Question No: 13

View the Exhibit and examine the structure of the EMP table.

Latesttests 2018 PDF and VCE

You executed the following command to add a primary key to the EMP table: ALTER TABLE emp

ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id) USING INDEX emp_id_idx;

Which statement is true regarding the effect of the command?

  1. The PRIMARY KEY is created along with a new index.

  2. The PRIMARY KEY is created and it would use an existing unique index.

  3. The PRIMARY KEY would be created in a disabled state because it is using an existing index.

  4. The statement produces an error because the USING clause is permitted only in the CREATE TABLE command.

Answer: B

Question No: 14

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.

Answer: B,E

Question No: 15

Which statement is true regarding Flashback Version Query?

  1. It returns versions of rows only within a transaction.

  2. It can be used in subqueries contained only in a SELECT statement.

  3. It will return an error if the undo retention time is less than the lower bound time or SCN specified.

  4. It retrieves all versions including the deleted as well as subsequently reinserted versions of the rows.

Answer: D

Question No: 16

Evaluate the following SQL statements that are issued in the given order:

CREATE TABLE emp

(emp_no NUMBER(2) CONSTRAINT emp_emp_no_pk PRIMARY KEY, enameVARCHAR2(15),

salary NUMBER(8,2),

mgr_no NUMBER(2) CONSTRAINT emp_mgr_fk REFERENCES emp);

ALTER TABLE emp

DISABLE CONSTRAINT emp_emp_no_pk CASCADE;

ALTER TABLE emp

ENABLE CONSTRAINT emp_emp_no_pk;

What would be the status of the foreign key EMP_MGR_FK?

  1. It would be automatically enabled and deferred.

  2. It would be automatically enabled and immediate.

  3. It would remain disabled and has to be enabled manually using the ALTER TABLE command.

  4. It would remain disabled and can be enabled only by dropping the foreign key constraint and re-creating it.

Answer: C

Question No: 17

Which statements are correct regarding indexes? (Choose all that apply.)

  1. When a table is dropped, the corresponding indexes are automatically dropped.

  2. For each DML operation performed, the corresponding indexes are automatically updated.

  3. Indexes should be created on columns that are frequently referenced as part of an expression.

  4. A non-deferrable PRIMARY KEY or UNIQUE KEY constraint in a table automatically creates a unique index.

Answer: A,B,D

Question No: 18

View the Exhibit and examine the structure of the ORDERS table. Which task would require subqueries?

Latesttests 2018 PDF and VCE

  1. displaying the total order value for sales representatives 161 and 163

  2. displaying the order total for sales representative 161 in the year 1999

  3. displaying the number of orders that have order mode online and order date in 1999

  4. displaying the number of orders whose order total is more than the average order total for all online orders

Answer: D

Question No: 19

View the Exhibit and examine the details of the EMPLOYEES table.

Latesttests 2018 PDF and VCE

Evaluate the following SQL statement:

SELECT phone_number,

REGEXP_REPLACE(phone_number,#39;([[: digit: ]]{3})\.([[: digit: ]]{3})\.([[: digit: ]]{4})#39;, ,(\1)\2-

\3#39;)

quot;PHONE NUMBERquot;

FROM employees;

The query was written to format the PHONE_NUMBER for the employees. Which option would be the correct format in the output?

  1. xxx-xxx-xxxx

  2. (xxx) xxxxxxx

  3. (xxx) xxx-xxxx

  4. xxx-(xxx)-xxxx

Answer: C

Question No: 20

The details of the order ID, order date, order total, and customer ID are obtained from the ORDERS table. If the order value is more than 30000, the details have to be added to the LARGEjDRDERS table. The order ID, order date, and order total should be added to the ORDERJHISTORY table, and order ID and customer ID should be added to the CUSTJHISTORY table. Which multitable INSERT statement would you use?

  1. Pivoting INSERT

  2. Unconditional INSERT

  3. Conditional ALL INSERT

  4. Conditional FIRST INSERT

Answer: C

100% Free Download!
Download Free Demo:1z0-047 Demo PDF
100% Pass Guaranteed!
Download 2018 Latesttests 1z0-047 Full Exam PDF and VCE

Latesttests ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2018 Latesttests IT Certification PDF and VCE