READ Free Dumps For Oracle- 1z0-007
Question ID 7845 | Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHARD2(30) SALARY NUMBER(8,2) Which statement shows the maximum salary paid in each job category of each department? |
Option A | SELECT dept_id, job_cat, MAX(salary) FROM employees WHERE salary > MAX (salary); |
Option B | SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id,job_cat; |
Option C | SELECT dept_id, job_cat, MAX(salary) FROM employees; |
Option D | SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept_id; |
Option E | SELECT dept_id, job_cat, MAX(salary) FROM employees GROUP BY dept _ id job _ cat salary; |
Correct Answer | B |
Question ID 7847 | Which syntax turns an existing constraint on? |
Option A | ALTER TABLE table_name ENABLE constraint_name; |
Option B | ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name; |
Option C | ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name; |
Option D | ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name; |
Option E | ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name; |
Option F | ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name; |
Correct Answer | C |