READ Free Dumps For Oracle- 1z0-007
Question ID 8053 | Evaluate this SQL statement: SELECT e.emp_name, d.dept_name FROM employees e JOIN departments d USING (department_id) WHERE d.department_id NOT IN (10,40) ORSER BY dept_name; The statement fails when executed. Which change fixes the error? |
Option A | remove the ORDER BY clause |
Option B | remove the table alias prefix from the WHERE clause |
Option C | remove the table alias from the SELECT clause |
Option D | prefix the column in the USING clause with the table alias |
Option E | prefix the column in the ORDER BY clause with the table alias |
Option F | replace the condition "d.department_id NOT IN (10,40)" in the WHERE clause with "d.department_id <> 10 AND d.department_id <> 40" |
Correct Answer | CE |
Question ID 8054 | Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: EMPLOYEES EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE NEW_EMPLOYEES EMPLOYEE_ID NUMBER Primary Key NAME VARCHAR2 (60) Which DELETE statement is valid? |
Option A | DELETE FROM employees WHERE employee_id = (SELECT employee_id FROM employees); |
Option B | DELETE * FROM employees WHERE employee_id = (SELECT employee_id FROM new_ employees); |
Option C | DELETE FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = 'carrey'); |
Option D | DELETE * FROM employees WHERE employee_id IN (SELECT employee_id FROM new_employees WHERE name = 'carrey'); |
Correct Answer | C |