Pass the Oracle Oracle PL 1z0-071 Questions and answers with CertsForce

Viewing page 4 out of 10 pages
Viewing questions 31-40 out of questions
Questions # 31:

Which three statements are true about performing Data Manipulation Language (DML) operations on a view In an Oracle Database?

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.

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


D.

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


E.

Views cannot be used to add on modify rows in an underlying table if the defining query of the view contains aggregating functions.


F.

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.


Expert Solution
Questions # 32:

Which two statements are true about INTERVAL data types

Options:

A.

INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years.


B.

The value in an INTERVAL DAY TO SECOND column can be copied into an INTERVAL YEAR TO MONTH column.


C.

INTERVAL YEAR TO MONTH columns only support monthly intervals within a single year.


D.

The YEAR field in an INTERVAL YEAR TO MONTH column must be a positive value.


E.

INTERVAL DAY TO SECOND columns support fractions of seconds.


F.

INTERVAL YEAR TO MONTH columns support yearly intervals.


Expert Solution
Questions # 33:

Which two are true about queries using set operators (UNION, UNION ALL, INTERSECT and MINUS)?

Options:

A.

There must be an equal number of columns in each SELECT list.


B.

The name of each column in the first SELECT list must match the name of the corresponding column in each subsequent SELECT list.


C.

Each SELECT statement in the query can have an ORDER BY clause.


D.

None of the set operators can be used when selecting CLOB columns.


E.

The FOR UPDATE clause cannot be specified.


Expert Solution
Questions # 34:

A session's NLS_DATE_FORMAT is set to DD Mon YYYY .

Which two queries return the value 1 Jan 2019?

Options:

A.

SELECT to_date(' 2019-01-01 ', 'YYYY -MM-DD' ) FROM DUAL;


B.

SELECT DATE '2019-01-01' FROM DUAL ;


C.

SELECT TO_CHAR('2019-01-01') FROM DUAL; 2019-01-01


D.

SELECT '2019-01-01' FROM DUAL ; 2019-01-01


E.

SELECT TO_ DATE('2019-01-01') FROM DUAL;


Expert Solution
Questions # 35:

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

Options:

A.

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


B.

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


C.

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.


D.

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


E.

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


F.

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.


Expert Solution
Questions # 36:

Which two queries return the string Hello! we're ready?

Options:

A.

SELECT q'! Hello! We're ready! 'FROM DUAL;


B.

SELECT "Hello! We're ready "FROM |DUAL;


C.

SELECT q'[Hello! We're ready]'FROM DUAL;


D.

SELECT 'Hello! we\ re ready' ESCAPE'N'FROMDUAL:


E.

SELECT 'Hello! We're ready' FROM DUAL;


Expert Solution
Questions # 37:

Which three statements are true about Data Manipulation Language (DML)?

Options:

A.

delete statements can remove multiple rows based on multiple conditions.


B.

insert statements can insert nulls explicitly into a column.


C.

insert into. . .select. . .from statements automatically commit.


D.

DML statements require a primary key be defined on a table.


E.

update statements can have different subqueries to specify the values for each updated column.


Expert Solution
Questions # 38:

Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and QUANTITY, of data type NUMBER

Statement 1:

SELECT MAX (unit price*quantity) "Maximum Order FROM order items;

Statement 2:

SELECT MAX (unit price*quantity "Maximum order" FROM order items GROUP BY order id;

Which two statements are true?

Options:

A.

Statement 2 returns only one row of output.


B.

Both the statement given the same output.


C.

Both statements will return NULL if either UNIT PRICE or QUANTITY contains NULL,


D.

Statement 2 may return multiple rows of output.


E.

Statement 1 returns only one row of output.


Expert Solution
Questions # 39:

Which statement is true about aggregate functions?

Options:

A.

The AVG function implicitly converts NULLS to zero


B.

The MAX and MIN functions can be used on columns with character data types


C.

Aggregate functions can be used in any clause of a SELECT statement


D.

Aggregate functions can be nested to any number of levels


Expert Solution
Questions # 40:

Which statement falls to execute successfully?

Options:

A.

SELECT *

FROM employees e

JOIN department d

WHERE e.department_id=d.department_id

AND d.department_id=90;


B.

SELECT *

FROM employees e

JOIN departments d

ON e.department_id=d.department_id

WHERE d.department_id=90;


C.

SELECT *

FROM employees e

JOIN departments d

ON e.department_id=d.department_id

AND d.department_id=90;


D.

SELECT *

FROM employees e

JOIN departments d

ON d.departments_id=90

WHERE e.department_id=d.department_id;


Expert Solution
Viewing page 4 out of 10 pages
Viewing questions 31-40 out of questions