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

Viewing page 2 out of 10 pages
Viewing questions 11-20 out of questions
Questions # 11:

You own table DEPARTMENTS, referenced by views, indexes, and synonyms.

Examine this command which executes successfully:

DROP TABLE departments PURGE;

Which three statements are true?

Options:

A.

Neither can it be rolled back nor can the DEPARTMENTS table be recovered.


B.

It will remove all views that are based on the DEPARTMENTS table.


C.

It will delete all rows from the DEPARTMENTS table, but retain the empty table.


D.

It will remove the DE PARTMENTS table from the database.


E.

It will remove all synonyms for the DEPARTMENTS table.


F.

It will drop all indexes on the DEPARTMENTS table.


Expert Solution
Questions # 12:

What is true about non-equijoin statement performance?

Options:

A.

The between condition always performs less well than using the >= and <= conditions.


B.

The Oracle join syntax performs better than the SQL: 1999 compliant ANSI join syntax.


C.

The join syntax used makes no difference to performance.


D.

The between condition always performs better than using the >= and <= conditions.


E.

Table aliases can improve performance.


Expert Solution
Questions # 13:

Examine this query which executes successfully:

SELECT job, deptno FROM emp

UNION ALL

SELECT job, deptno FROM jobs_ history;

What will be the result?

Options:

A.

It will return rows common to both SELECT statements.


B.

It will return rows from both SELECT statements after eliminating duplicate rows.


C.

It will return rows that are not common to both SELECT statements.


D.

It will return rows from both SELECT statements including duplicate rows.


Expert Solution
Questions # 14:

Which two statements cause changes to the data dictionary?

Options:

A.

DELETE FROM scott. emp;


B.

GRANT UPDATE ON scott. emp TO fin manager;


C.

AITER SESSION set NLs. _DATE FORMAT = 'DD/MM/YYYY';


D.

TRUNCATE TABLE emp:


E.

SELECT * FROM user_ tab._ privs;


Expert Solution
Questions # 15:

The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER(8, 2).

Evaluate this SQL statement:

SELECT TO_CHAR(unit_price,'$9,999') FROM PRODUCT_INFORMATION;

Which two statements are true about the output?

Options:

A.

A row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,024.


B.

A row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,023.


C.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,0236.


D.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as $1,023.


E.

A row whose UNIT_PRICE column contains the value 10235.99 will be displayed as #####


Expert Solution
Questions # 16:

Which three statements are true about time zones, date data types, and timestamp data types in an Oracle database?

Options:

A.

The DBTIMEZONE function can return an offset from Universal Coordinated Time (UTC)


B.

A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the time zone of the session that inserted the row


C.

A TIMESTAMP data type column contains information about year, month, and day


D.

The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time (UTC)


E.

The CURRENT_TIMESTAMP function returns data without time zone information


Expert Solution
Questions # 17:

Examine the description products table:

Question # 17

Examine the description of the new_projects table;

Question # 17

Which two queries execute successfully?

A)

Question # 17

B)

Question # 17

C)

Question # 17

D)

Question # 17

E)

Question # 17

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


E.

Option E


Expert Solution
Questions # 18:

Which two statements are true about Oracle synonyms?

Options:

A.

A synonym can have a synonym.


B.

A synonym has an object number.


C.

Any user can create a public synonym.


D.

All private synonym names must be unique in the database.


E.

A synonym can be created on an object in a package.


Expert Solution
Questions # 19:

BOOK_SEQ is an existing sequence in your schema.

Which two CREATE TABLE commands are valid?

Options:

A.

CREATE TABLE bookings (

bk_id NUMBER(4) NOT NULL PRIMARY KEY,

start_date DATE NOT NULL,

end_date DATE DEFAULT SYSDATE);


B.

CREATE TABLE bookings (

bk_id NUMBER(4) NOT NULL DEFAULT book_seq.CURRVAL,

start_date DATE NOT NULL,

end_date DATE DEFAULT SYSDATE);


C.

CREATE TABLE bookings (

bk_id NUMBER(4) DEFAULT book_seq.CURRVAL,

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT start date);


D.

CREATE TABLE bookings ( bk_id NUMBER(4),

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT (end_date >= start_date));


E.

CREATE TABLE bookings (

bk_id NUMBER(4) DEFAULT book_seq.NEXTVAL PRIMARY KEY,

start_date DATE DEFAULT SYSDATE,

end_date DATE DEFAULT SYSDATE NOT NULL);


Expert Solution
Questions # 20:

The STORES table has a column START_ DATE of data type DATE, containing the date the row was inserted.

You only want to display details of rows where START_ DATE is within the last 25 months.

Which WHERE clause can be used?

Options:

A.

WHERE MONTHS_ BETWEEN (SYSDATE, start_ date) <= 25


B.

WHERE MONTHS_ BETWEEN (start_ date, SYSDATE) <= 25


C.

WHERE TO_ NUMBER (start_ date - SYSDATE) <= 25


D.

WHERE ADD_ MONTHS (start_ date, 25) <= SYSDATE


Expert Solution
Viewing page 2 out of 10 pages
Viewing questions 11-20 out of questions