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

Viewing page 10 out of 10 pages
Viewing questions 91-100 out of questions
Questions # 91:

Choose two

Examine the description of the PRODUCT DETALS table:

Question # 91

Options:

A.

PRODUCT_ID can be assigned the PEIMARY KEY constraint.


B.

EXPIRY_DATE cannot be used in arithmetic expressions.


C.

EXPIRY_DATE contains the SYSDATE by default if no date is assigned to it


D.

PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it


E.

PRODUCT_PRICE contains the value zero by default if no value is assigned to it.


F.

PRODUCT_NAME cannot contain duplicate values.


Expert Solution
Questions # 92:

Examine the description of the PRODUCT_STATUS table:

Question # 92

The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row

Which two queries will execute successfully?

Options:

A.

SELECT prod_id "CURRENT AVAILABILITY" || q'('s not available)' FROM product_status WHERE status = ’OUT OF STOCK';


B.

SELECT prod_id || q's not available'' FROM product_status WHERE status=’OUT OF STOCK’;


C.

SELECT prod_id || q'('s not available)’ "CURRENT AVAILABILITY" FROM product_status WHERE status = 'OUT OF STOCK';


D.

SELECT prod_id || q'('s not available)' FROM product_status WHERE status = ’OUT OF STOCK’;


E.

SELECT prod_id || q’(’s not available)' 'CURRENT AVAILABILITY' FROM product_status WHERE status = 'OUT OF STOCK';


F.

SELECT prod_id || q"'s not available" FROM product_status WHERE status = 'OUT OF STOCK';


Expert Solution
Questions # 93:

Examine the description of the BRICKS table;

Question # 93

Examine the description of the BRICKS_STAGE table;

Question # 93

Which two queries execute successfully?

Options:

A.

SELECT shape,color,weight from bricks

MINUS

SELECT * FROM bricks_stage;


B.

SELECT shape,color FROM bricks

MINUS

SELECT WEIGHT,color FROM bricks_stage;


C.

select * from bricks

MINUS

select * from bricks_stage;


D.

SELECT shape,color FROM bricks

MINUS

SELECT color,shape FROM bricks_stage;


E.

SELECT brick_id,shape FROM bricks

MINUS

SELECT WEIGHT,COLOR from bricks_stage;


Expert Solution
Questions # 94:

You execute this command:

TRUNCATE TABIE depts;

Which two are true?

Options:

A.

A ROLLBACK statement can be used to retrieve the deleted data.


B.

It drops any triggers defined on the table.


C.

It retains the indexes defined on the table.


D.

It retains the integrity constraints defined on the table,


E.

It always retains the space used by the removed rows.


F.

A FLASHBACK TABLE statement can be used to retrieve the deleted data.


Expert Solution
Questions # 95:

In the PROMOTIONS table, the PROMO_BEGTN_DATE column is of data type DATE and the default date format is DD-MON-RR.

Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a query?

Options:

A.

TO_NUMBER(PROMO_BEGIN_DATE)-5 will return number


B.

TO_DATE(PROMO_BEGIN_DATE * 5) will return a date


C.

PROMO_BEGIN_DATE-SYSDATE will return a number.


D.

PROMO_BEGIN_DATE-5 will return a date.


E.

PROMO_BEGIN_DATE-SYSDATE will return an error.


Expert Solution
Questions # 96:

Which three statements are true about Structured Query Language (SQL)?

Options:

A.

It guarantees atomicity, consistency, isolation, and durability (ACID) features


B.

It best supports relational databases


C.

It is used to define encapsulation and polymorphism for a relational table


D.

It requires that data be contained in hierarchical data storage


E.

It is the only language that can be used for both relational and object-oriented databases


F.

It provides independence for logical data structures being manipulated from the underlying physical data storage


Expert Solution
Questions # 97:

Which three are true about scalar subquery expressions?

Options:

A.

A scalar subquery expression that returns zero rows evaluates to zoro


B.

They cannot be used in the values clause of an insert statement*


C.

They can be nested.


D.

A scalar subquery expression that returns zero rows evaluates to null.


E.

They cannot be used in group by clauses.


F.

They can be used as default values for columns in a create table statement.


Expert Solution
Viewing page 10 out of 10 pages
Viewing questions 91-100 out of questions