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

Viewing page 7 out of 10 pages
Viewing questions 61-70 out of questions
Questions # 61:

You execute this command:

ALTER TABLE employees SET UNUSED (department_id);

Which two are true?

Options:

A.

A query can display data from the DEPARTMENT_ID column.


B.

The storage space occupied by the DEPARTMENT_ID column is released only after a COMMIT is issued.


C.

The DEPARTMENT_ID column is set to null for all tows in the table


D.

A new column with the name DEPARTMENT_ID can be added to the EMPLOYEES table.


E.

No updates can be made to the data in the DEPARTMENT_ID column.


F.

The DEPARTMENT_ID column can be recovered from the recycle bin


Expert Solution
Questions # 62:

which is true about the round,truncate and mod functions>?

Options:

A.

ROUND(MOD(25,3),-1) IS INVALID


B.

ROUND(MOD(25,3),-1) AND TRUNC(MOD(25,3),-1) ARE BOTH VALID AND GIVE THE SAME RESULT.


C.

ROUND(MOD(25,3),-1) AND TRUNC(MOD(25,3),-1) ARE BOTH VALID AND GIVE THE DIFFERENT RESULTS.


D.

TRUNC(MOD(25,3),-1) IS INVALID.


Expert Solution
Questions # 63:

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


Expert Solution
Questions # 64:

Examine this partial command:

CREATE TABLE cust(

cust_id NUMBER(2),

credit_limit NUMBER(10)

ORGANIZATION EXTERNAL

Which two clauses are required for this command to execute successfully?

Options:

A.

the ACCESS PARAMETERS clause


B.

the DEFAULT DIRECTORY clause


C.

the access driver TYPE clause


D.

the LOCATION clause


E.

the REJECT LIMIT clause


Expert Solution
Questions # 65:

Examine the data in the EMP table:

Question # 65

You execute this query:

SELECT deptno AS "Department", AVG(sal) AS AverageSalary, MAX(sal) AS "Max Salary"

FROM emp

WHERE sal >= 12000

GROUP BY "Department "

ORDER BY AverageSalary;

Why does an error occur?

Options:

A.

An alias name must not be used in an ORDER BY clause.


B.

An allas name must not contain space characters.


C.

An alias name must not be used in a GROUP BY clause.


D.

An alias name must always be specified in quotes.


Expert Solution
Questions # 66:

Examine the description of the EMPLOYEES table:

Question # 66

Which statement increases each employee's SALARY by the minimum SALARY for their DEPARTM

ENT_ID?

Options:

A.

UPDATE employees e1

SET salary =(SELECT e2. salary + MIN(e2.salary)

FROM employees e2

WHERE e1.department_ id = e2. department_id GROUP BY e2. department_id) ;


B.

UPDATE employees e1

SET salary = salary +

(SELECT MIN(e1. salary)

FROM employees e2

WHERE e1.department_id = e2 .department_id);


C.

UPDATE employees e1

SET salary = salary+(SELECT MIN (salary)

FROM employees e2) ;


D.

UPDATE employees e1

SET salary=

(SELECT e1.salary + MIN(e2.salary)

FROM employees e2

WHERE e1. department_ id = e2.department_id);


Expert Solution
Questions # 67:

Which two statements are true? (Choose two.)

Options:

A.

The USER SYNONYMS view can provide information about private synonyms.


B.

The user SYSTEM owns all the base tables and user-accessible views of the data dictionary.


C.

All the dynamic performance views prefixed with V$ are accessible to all the database users.


D.

The USER OBJECTS view can provide information about the tables and views created by the user only.


E.

DICTIONARY is a view that contains the names of all the data dictionary views that the user can access.


Expert Solution
Questions # 68:

Which statement is true about TRUNCATE and DELETE?

Options:

A.

For large tables TRUNCATE is faster than DELETE.


B.

For tables with multiple indexes and triggers is faster than TRUNCATE.


C.

You can never TRUNCATE a table if foreign key constraints will be violated.


D.

You can never tows from a table if foreign key constraints will be violated.


Expert Solution
Questions # 69:

You have the privileges to create any type of synonym.

Which stalement will create a synonym called EMP for the HCM.EMPLOYEE_RECORDS table that is accesible to all users?

Options:

A.

CREATE GLOBAL SYNONYM emp FOR hcm.employee_records;


B.

CREATE SYNONYM emp FOR hcm.employee_records;


C.

CREATE SYNONYM PUBLIC.emp FOR hcm.employee_records;


D.

CREATE SYNONYM SYS.emp FOR hcm.employee_records;


E.

CREATE PUBLIC SYNONYM emp FOR hcm. employee_records;


Expert Solution
Questions # 70:

Examine the description of the BOOKS_TRANSACTIONS table:

Question # 70

Examine this partial SQL statement:

SELECT * FROM books_transactions

Which two WHERE conditions give the same result?

Options:

A.

WHERE (borrowed_date = SYSDATE AND transaction_type = 'RM') OR member_id IN ('A101','A102');


B.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN('A101','A102');


C.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN('A101','A102');


D.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' AND (member_id = 'A101' OR member_id = 'A102'));


E.

WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' AND member_id = 'A101' OR member_id = 'A102');


Expert Solution
Viewing page 7 out of 10 pages
Viewing questions 61-70 out of questions