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 7893

Examine the data in the EMPLOYEES table. 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 EK_DIR 8000 120 Revi 20 110 SA_DIR 6500 On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID. The JOB_ID column is a NOT NULL column. Evaluate this DELETE statement: DELETE employee_id, salary, job_id FROM employees WHERE dept_id = 90; Why does the DELETE statement fail when you execute it?

Option A

There is no row with dept_id 90 in the EMPLOYEES table.

Option B

You cannot delete the JOB_ID column because it is a NOT NULL column.

Option C

You cannot specify column names in the DELETE clause of the DELETE statement.

Option D

You cannot delete the EMPLOYEE_ID column because it is the primary key of the table

Correct Answer C
Explanation Explanation/Reference: Explanation: You cannot specify column names in the DELETE clause of the DELETE statement. Syntax of this command is: DELETE FROM table_name WHERE column_name = value. Incorrect Answers A: Error in this statement is related with list of columns in the DELETE statement, not with absence of row with DEPT_ID = 90 in the EMPLOYEES table. B: Error in this statement is related with list of columns in the DELETE statement, not with NOT NULL constraint on the JOB_ID column. D: Error in this statement is related with list of columns in the DELETE statement, not with the primary key constraint on the EMPLOYEE_ID column. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 270-273 Chapter 6: Manipulating Oracle Data


Question ID 7894

Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?

Option A

The two statements produce identical results.

Option B

The second statement returns a syntax error.

Option C

There is no need to specify DESC because the results are sorted in descending order by default.

Option D

The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.

Correct Answer A
Explanation Explanation/Reference: Explanation: These two statements produce identical results, because it is possible even to use numbers to indicate the column position where Oracle should order the output from a statement. Incorrect Answers B: Second statement is correct and it will not return a syntax error. C: The results are sorted in ascending order by default. D: There is no corrections need to be made for the statements. They will return identical results. OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 56-61 Chapter 2: Limiting, Sorting, and Manipulating Return Data

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