Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Pass 1z0-071 Exam Guide

Page: 8 / 24
Total 326 questions

Oracle Database 12c SQL Questions and Answers

Question 29

Examine the data in the EMPLOYEES table:

Which statement will compute the total annual compensation for each employee?

Options:

A.

SELECT last name,

(monthly salary*12) + (monthly_commission_pct * 12) AS

annual comp

FROM employees

;

B.

SELECT last_ name (monthly_ salary+ monthly_ commission _ pct) *12 AS annual_

FROM employees ;

C.

SELECT last name, (monthly_ salary *12) + (monthly_ salary * 12 * NVL

(monthly commission pct,0) ) As annual _ comp

FROM employees;

D.

SELECT last_ name, monthly_ salary*12) + (monthly_ salary * 12 * Monthly commission _Pct) AS

annual_ comp

FROM employees;

Question 30

Which three are true about the MERGE statement?

Options:

A.

It can merge rows only from tables.

B.

It can use views to produce source rows.

C.

It can combine rows from multiple tables conditionally to insert into a single table.

D.

It can use subqueries to produce source rows.

E.

It can update the same row of the target table multiple times.

F.

It can update, insert, or delete rows conditionally in multiple tables.

Question 31

Which three statements are true?

Options:

A.

A customer can exist in many countries.

B.

The statement will fail if a row already exists in the SALES table for product 23.

C.

The statement will fail because subquery may not be I contained in a values clause.

D.

The SALES table has five foreign keys.

E.

The statement will execute successfully and a new row will be inserted into the SALES table.

F.

A product can have a different unit price at different times.

Question 32

Which three are true about granting object privileges on tables, views, and sequences?

Options:

A.

UPDATE can be granted only on tables and views.

B.

DELETE can be granted on tables, views, and sequences.

C.

REFERENCES can be granted only on tables and views.

D.

INSERT can be granted on tables, views, and sequences.

E.

SELECT can be granted only on tables and views.

F.

ALTER can be granted only on tables and sequences.

Page: 8 / 24
Total 326 questions