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

Oracle PL 1z0-071 Reddit Questions

Page: 15 / 24
Question 60

Examine the description of the EMPLOYEES table:

Which query is valid?

Options:

A.

SELECT dept_id, join date, SUM(salary) FROM employees GROUP BY dept_id,join_date;

B.

SELECT dept_id, MAX (AVG(salary)) FROM employees GROUP BY dept_id;

C.

SELECT dept_id, AVG(NAX(salary)) FROM employees GROUP BY dept_id;

D.

SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;

Question 61

Which two statements are true about CURRENT_TIMEITAMP?

Options:

A.

The date is in the time zone of DBTIMEZONE.

B.

The value varies depending on the setting of SESSIONTIMEZONE.

C.

It returns the same date as CURRENT_DATE.

D.

The time is in the time zone of DBTIMEZONE.

E.

It returns a value of data type TIMESTAMP

F.

It always returns the same value as SYSTIMESTAMP

Question 62

Which three statements are true about performing DML operations on a view with no INSTEAD OF triggers defined?

Options:

A.

Insert statements can always be done on a table through a view.

B.

The WITH CHECK clause has no effect when deleting rows from the underlying table through the view.

C.

Delete statements can always be done on a table through a view.

D.

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.

E.

Views cannot be used to query rows from an underlying table if the table has a PRIMARY KEY and the primary key columns are not referenced in the defining query of the view.

F.

Views cannot be used to add or modify rows in an underlying table If the defining query of the view contains the DISTINCT keyword.

Question 63

View the Exhibits and examine the structure of the COSTS and PROMOTIONS tables.

You want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a pro

motion time interval.

Examine this SQL statement:

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 will be the result?

Options:

A.

It executes successfully but does not give the required result.

B.

It gives an error because the ALL keyword is not valid.

C.

It gives an error because the GROUP BY clause is not valid

D.

It executes successfully and gives the required result.

Page: 15 / 24
Exam Code: 1z0-071
Exam Name: Oracle Database 12c SQL
Last Update: Nov 21, 2024
Questions: 326
1z0-071 pdf

1z0-071 PDF

$28  $80
1z0-071 Engine

1z0-071 Testing Engine

$33.25  $95
1z0-071 PDF + Engine

1z0-071 PDF + Testing Engine

$45.5  $130