READ Free Dumps For Oracle- 1z1-051
Question ID 4898 | You own a table called EMPLOYEES with this table structure: |
Option A | A. You get an error because of a primary key violation. |
Option B | B. The data and structure of the EMPLOYEES table are deleted. |
Option C | C. The data in the EMPLOYEES table is deleted but not the structure. |
Option D | D. You get an error because the statement is not syntactically correct. |
Correct Answer | C |
Question ID 4899 | Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: |
Option A | A. MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT |
Option B | B. MERGE new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES (e.employee_id, e.first_name ||', '||e.last_name); |
Option C | C. MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||', '||e.last_name); |
Option D | D. MERGE new_employees c FROM employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||','|| e.last_name WHEN NOT MATCHED THEN INSERT INTO new_employees VALUES (e.employee_id, e.first_name ||', '||e.last_name); |
Correct Answer | A |