AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-007





Question ID 7856

Examine the data in the EMPLOYEES and DEPARTMENTS tables:

EMPLOYEES

EMP_NAME DEPT_ID MGR_ID JOB_ID SALARY

EMPLOYEE_ID

101 Smith 20 120 SA_REP 4000

102 Martin 10 105 CLERK 2500

103 Chris 20 120 IT_ADMIN 4200

104 John 30 108 HR_CLERK 2500

105 Diana 30 108 IT_ADMIN 5000

106 Smith 40 110 AD_ASST 3000

108 Jennifer 30 110 HR_DIR 6500

110 Bob 40 EX_DIR 8000

120 Ravi 20 110 SA*DIR 6500

DEPARTMENTS

DEPARTMENT_ID DEPARTMENT_NAME

10 Admin

20 Education

30 IT

40 Human Resources

Also examine the SQL statements that create the EMPLOYEES and DEPARTMENTS tables:

 

CREATE TABLE departments

(department_id NUMBER PRIMARY KEY,

department _ name VARCHAR2(30));

CREATE TABLE employees

(EMPLOYEE_ID NUMBER PRIMARY KEY,

EMP_NAME VARCHAR2(20),

DEPT_ID NUMBER REFERENCES

departments(department_id),

MGR_ID NUMBER REFERENCES

employees(employee id),

MGR_ID NUMBER REFERENCES

employees(employee id),

JOB_ID VARCHAR2(15).

SALARY NUMBER);

ON the EMPLOYEES,

On the EMPLOYEES table, EMPLOYEE_ID is the primary key.

MGR_ID is the ID of managers and refers to the EMPLOYEE_ID. DEPT_ID is foreign key to

DEPARTMENT_ID column of the DEPARTMENTS table. On the DEPARTMENTS table, DEPARTMENT_ID is

the primary key.

Examine this DELETE statement:

DELETE FROM departments WHERE department id = 40;

What happens when you execute the DELETE statement?

Option A

Only the row with department ID 40 is deleted in the DEPARTMENTS table.

Option B

The statement fails because there are child records in the EMPLOYEES table with department ID 40.

Option C

The row with department ID 40 is deleted in the DEPARTMENTS table. Also the rows with employee IDs 110 and 106 are deleted from the EMPLOYEES table.

Option D

The row with department ID 40 is deleted in the DEPARTMENTS table. Also the rows with employee IDs 106 and 110 and the employees working under employee 110 are deleted from the EMPLOYEES table.

Option E

The row with department ID 40 is deleted in the DEPARTMENTS table. Also all the rows in the EMPLOYEES table are deleted.

Option F

The statement fails because there are no columns specifies in the DELETE clause of the DELETE statement.

Correct Answer B
Explanation Explanation/Reference: Explanation: It will be error generated because there are 2 child records in the EMPLOYEES table with department number you try to delete from the DEPARTMENTS table. Incorrect Answers A: The row with department ID 40 will not be deleted because of the child records in the EMPLOYEES table. C: Neither the row with department ID 40 will not be deleted not child records in the EMPLOYEES table will be deleted. D: It will be error when you try to execute the DELETE statement, no rows will be deleted in the EMPLOYEES or the DEPARTMENTS tables. E: It will be error when you try to execute the DELETE statement, no rows will be deleted in the EMPLOYEES or the DEPARTMENTS tables. F: The statement fails because of constraint violation not because there are no columns specifies in the DELETE clause of the DELETE statement. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 240-245 Chapter 5: Creating Oracle Database Objects


Question ID 7857

Which three are DATETIME data types that can be used when specifying column definitions? (Choose three.)

Option A

TIMESTAMP

Option B

INTERVAL MONTH TO DAY

Option C

INTERVAL DAY TO SECOND

Option D

INTERVAL YEAR TO MONTH

Option E

TIMESTAMP WITH DATABASE TIMEZONE

Correct Answer ACD
Explanation Explanation/Reference: Explanation: TIMESTAMP, INTERVAL DAY TO SECOND and INTERVAL YEAR TO MONTH can be used to specify column definition. Incorrect Answers B: The INTERVAL MONTH TO DAY data type cannot be used when specifying column definitions there are only INTERVAL DAY TO SECOND and INTERVAL YEAR TO MONTH data types. E: The TIMESTAMP WITH DATABASE TIMEZONE data type cannot be used when specifying column definitions, because there are only TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE data types. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 215-217 Chapter 5: Creating Oracle Database Objects

Send email to admin@getfreedumps for new dumps request!!!