EMPLOYEES and DEPARTMENTS data: EMPLOYEES DEPARTMENTS On the
EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID managers and
refers to the EMPLOYEE_ID. On the DEPARTMENTS table DEPARTMENT_ID is the
primary key. Evaluate this UPDATE statement. UPDATE employees SET mgr_id =
(SELECT mgr_id FROMemployees WHERE dept_id= (SELECT department_id FROM
departments WHERE department_name = ‘Administration’)), Salary = (SELECT salary
FROM employees WHERE emp_name = ‘Smith’) WHERE job_id = ‘IT_ADMIN’; What
happens when the statement is executed?
A.
The statement executes successfully, changes the manager ID to NULL, and changes
the salary to 4000 for the employees with ID 103 and 105.
B.
The statement fails because there is no ‘Administration’ department in the
DEPARTMENTS table.
C.
The statement fails because there is more than one row matching the IT_ADMIN job ID
in the EMPLOYEES table.
D.
The statement executes successfully, changes the manager ID to NULL, and changes
the salary to 3000 for the employees with ID 103 and 105.
E.
The statement executes successfully, leaves the manager ID as the existing value, and
changes the salary to 4000 for the employees with ID 103 and 105.
F.
The statement fails because there is more than one row matching the employee name
Smith.
C
F is true.
F
Cleared Oracle Database 11g 1Z0-051 exam last weekend!
Scored 90%! (The passing score is 60%)
There were 64 questions in my actual 1Z0-051 test.
Many questions on SQL statements (Examine, Evaluate…etc.), Manipulating Data (Insert, Update, Delete), Using DDL Statements to Create and Manage Tables.
Also, please pay close attention to questions on Reporting Aggregated Data Using the Group Functions, Using Subqueries to Solve Queries, Creating Schema Objects, a little difficult!
I mainly learned the PassLeader 1Z0-051 dumps (http://www.passleader.com/1z0-051.html) (303q VCE and PDF), all questions were from it, and many wrong answers have been corrected in it, the most valid 1Z0-051 dumps! DO RECOMMEND!!
By the way, part of that 303q 1Z0-051 dumps are available here:
http://www.oraclebraindump.com/?s=1z0-051
(
p.s. More 1Z0-051 exam questions on Google Drive: drive.google.com/open?id=0B-ob6L_QjGLpWXpBUEhyRnVXVlE
)
Good Luck!!!